/* ================================
   KBLUR - PREMIUM DROPSHIPPING STORE
   Professional CSS with Attention to Detail
   ================================ */

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

:root {
    --primary-dark: #1a4d2e;
    --primary-medium: #4f7942;
    --primary-light: #5da271;
    --accent-green: #6ec97a;
    --accent-light: #a8e6a1;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #e9ecef;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --black: #000000;
    --shadow-sm: 0 2px 4px rgba(26, 77, 46, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 77, 46, 0.12);
    --shadow-lg: 0 10px 30px rgba(26, 77, 46, 0.15);
    --shadow-xl: 0 20px 60px rgba(26, 77, 46, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--primary-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-dark);
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.search-icon,
.cart-icon {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-dark);
    transition: var(--transition);
    position: relative;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-green);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.search-icon:hover,
.cart-icon:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--ktext, #fff);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================================
   HERO SECTION
   ================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light), transparent);
    top: -300px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-green), transparent);
    bottom: -200px;
    right: -100px;
    animation-delay: -10s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-light), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

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

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-title span {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fade-in-up {
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }
.delay-7 { animation-delay: 1.4s; }

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--gray-dark);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 77, 46, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 77, 46, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-medium);
    border: 2px solid var(--primary-medium);
    padding: 0.8rem 2rem;
}

.btn-outline:hover {
    background: var(--primary-medium);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray-medium);
    font-size: 0.95rem;
}

/* ================================
   TRUST BADGES
   ================================ */
.trust-badges {
    padding: 4rem 0;
    background: var(--off-white);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.badge-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    transition: var(--transition);
}

.badge-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.badge-item i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.badge-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.badge-item p {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* ================================
   FEATURED PRODUCTS
   ================================ */
.featured-products {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-medium);
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
}

.product-badge.sale {
    background: #e63946;
}

.product-badge.trending {
    background: #f77f00;
}

.product-num {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-dark);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 6px rgba(26,77,46,0.3);
}

.product-category-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 77, 46, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
    color: #ffc107;
}

.product-rating span {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-left: 0.3rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--gray-medium);
    font-size: 0.95rem;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ================================
   WHY CHOOSE US
   ================================ */
.why-choose-us {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--gray-medium);
    line-height: 1.7;
}

/* ================================
   TESTIMONIALS
   ================================ */
.testimonials {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary-light);
}

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

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-card p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray-medium);
}

/* ================================
   NEWSLETTER
   ================================ */
.newsletter {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: var(--accent-light);
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    white-space: nowrap;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

/* CSS-rendered brand wordmark for footer (replaces broken filter trick on raster JPEG).
   Uses the kblur brand colors directly — no image dependency, scales perfectly, no flicker. */
.footer-logo .brand {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    user-select: none;
}
.footer-logo .brand .k    { color: #6ec97a; }   /* accent green */
.footer-logo .brand .rest { color: #ffffff; }   /* white */

/* Legacy fallback if any page still uses <img> in footer-logo — show it without the
   brightness/invert filter that destroys multi-color logos. */
.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-column p {
    color: var(--accent-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--accent-light);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent-light);
}

.contact-info li i {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--accent-light);
}

.footer-bottom a {
    color: var(--accent-light);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ================================
   LEGAL / POLICY PAGES
   ================================ */
.legal-page {
    padding: 140px 0 80px;
    background: var(--off-white);
    min-height: 70vh;
}
.legal-page .container { max-width: 820px; }
.legal-page h1 {
    font-family: 'Playfair Display', 'Poppins', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}
.legal-page .legal-meta {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}
.legal-page h2 {
    color: var(--primary-dark);
    font-size: 1.35rem;
    margin: 2.2rem 0 0.8rem;
    font-weight: 700;
}
.legal-page p,
.legal-page li {
    color: var(--gray-dark);
    line-height: 1.75;
    font-size: 1rem;
}
.legal-page ul,
.legal-page ol {
    margin: 0.75rem 0 1rem 1.4rem;
    padding-left: 0.4rem;
}
.legal-page ul li { list-style: disc; margin-bottom: 0.4rem; }
.legal-page ol li { list-style: decimal; margin-bottom: 0.4rem; }
.legal-page a {
    color: var(--primary-medium);
    text-decoration: underline;
    font-weight: 500;
}
.legal-page a:hover { color: var(--primary-dark); }
.legal-page details {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.6rem;
    transition: var(--transition-fast);
}
.legal-page details[open] { box-shadow: var(--shadow-sm); }
.legal-page details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
    list-style: none;
    padding: 0.2rem 0;
    position: relative;
    padding-right: 1.6rem;
}
.legal-page details summary::-webkit-details-marker { display: none; }
.legal-page details summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0.1rem;
    font-size: 1.3rem;
    color: var(--primary-light);
    transition: transform 0.2s;
}
.legal-page details[open] summary::after { content: '−'; }
.legal-page details p { margin-top: 0.6rem; }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.legal-table th,
.legal-table td {
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.95rem;
}
.legal-table th {
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 600;
}
.legal-table tr:last-child td { border-bottom: none; }

/* ================================
   CHATBOT
   ================================ */
.chatbot {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 600px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.chatbot.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--white);
    padding: 1.2rem 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.online-indicator {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.chatbot-minimize {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.chatbot-minimize:hover {
    transform: scale(1.1);
}

.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 450px;
}

.message {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
}

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

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-green));
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--gray-light);
}

.message-content {
    flex: 1;
}

.message-content p {
    background: var(--off-white);
    padding: 0.8rem 1rem;
    border-radius: 15px;
    color: var(--primary-dark);
    line-height: 1.5;
}

.user-message .message-content p {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--white);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.quick-reply {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--primary-light);
    border-radius: 20px;
    color: var(--primary-dark);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.quick-reply:hover {
    background: var(--primary-light);
    color: var(--white);
}

.chatbot-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 0.8rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 25px;
    outline: none;
    font-family: inherit;
}

.chatbot-input input:focus {
    border-color: var(--primary-light);
}

#chatbot-send {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbot-send:hover {
    transform: scale(1.05);
}

.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e63946;
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #0a0a0a;
        border-top: 1px solid #1f1f1f;
        width: 100%;
        text-align: center;
        transition: left 0.28s ease;
        box-shadow: 0 18px 32px rgba(0,0,0,0.6);
        padding: 2rem 0;
        gap: 1.5rem;
        z-index: 1000;
    }

    .nav-menu .nav-link {
        color: #fff;
        font-size: 1.1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
    }

    .chatbot {
        width: calc(100% - 40px);
        right: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

/* ================================
   SCROLLBAR STYLING
   ================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ================================
   UTILITY ANIMATIONS
   ================================ */
.bounce {
    animation: bounce 1s infinite;
}

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

.rotate {
    animation: rotate 20s linear infinite;
}

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

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

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