/* ============================================
   MM420 - Medicine Man 420 - EXACT CLONE v2
   Original: https://mm420bot.com/
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;600;700&family=Inter:wght@400;500;700&family=Poppins:wght@500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    background: #ffffff;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* ============ HEADER ============ */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}
#header.hidden { transform: translateY(-100%); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 64px;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.08);
    margin: 15px 15px 0 15px;
    padding: 8px 12px;
    min-height: 54px;
}

/* Logo with border box */
.logo-wrap {
    text-align: center;
    align-self: center;
    width: initial;
}
.logo-wrap a {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: -2.3px;
    color: #1D1D1F;
    margin: 0 12px 0 0;
    padding: 0 16px 0 0;
    border: 2px solid #1d1d1f;
    padding: 2px 14px;
}

/* Main Navigation */
.main-nav { display: flex; align-items: center; flex: 1; }
.main-nav-list { display: flex; align-items: center; }
.main-nav-list > li { position: relative; }
.main-nav-list > li > a {
    display: flex; align-items: center;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #060303;
    white-space: nowrap;
    line-height: 1.2;
}
.main-nav-list > li > a:hover,
.main-nav-list > li > a.active { color: #307adb; }
.main-nav-list > li > a .arrow-down { font-size: 11px; margin-left: 4px; color: #060303; }

/* Dropdown */
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0px 5px 15px 0px rgba(12,12,12,0.1);
    opacity: 0; visibility: hidden;
    transform: translateY(6px);
    transition: all 0.25s ease;
    z-index: 50;
    margin-top: 10px;
    border-radius: 0;
}
.main-nav-list > li:hover > .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li a {
    display: block; padding: 12px 25px;
    font-family: 'Inter', sans-serif;
    font-size: 14px; color: #000;
    border-bottom: 1px solid rgba(29,29,31,0.05);
}
.dropdown-menu li a:hover { color: #307adb; background: #fff; }
.dropdown-menu li:last-child a { border-bottom: none; }

.mega-dropdown {
    min-width: 700px; padding: 10px 0;
    display: flex;
}
.mega-dropdown .mega-col { flex: 1; padding: 0 15px; }
.mega-dropdown .mega-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 600; color: #000;
    margin-bottom: 8px; padding: 8px 10px;
    border-bottom: 1px solid rgba(29,29,31,0.05);
}
.mega-dropdown .mega-col li a { padding: 8px 10px; border: none; font-size: 13px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; }
.header-actions .action-btn {
    padding: 8px 5px; font-size: 24px; color: #1d1d1f;
    cursor: pointer; background: none; border: none;
    transition: color 0.3s;
    align-self: center;
}
.header-actions .action-btn:hover { color: rgba(29,29,31,0.8); }

/* Search */
.search-toggle {
    margin: 3px 8px 3px 0;
    align-self: center;
}
.search-toggle i { font-size: 24px; color: #2c2c2c; cursor: pointer; }
.search-toggle i:hover { color: rgba(29,29,31,0.8); }

/* Account */
.account-btn { font-size: 28px !important; line-height: 0.8; padding: 2px 5px !important; }

/* Cart */
.cart-btn { 
    display: flex !important;
    align-items: center;
    font-family: 'Inter', sans-serif;
    padding: 0px 10px 3px 5px !important;
    font-size: 28px !important;
}
.cart-btn .cart-text { font-size: 16px; font-weight: 400; color: #1d1d1f; margin-left: 4px; }

.mobile-menu-toggle { display: none; padding: 10px; font-size: 24px; cursor: pointer; background: none; border: none; color: #1d1d1f; order: -99999; }

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 200;
    display: none; align-items: center; justify-content: center;
}
.search-overlay.active { display: flex; }
.search-overlay .search-close {
    position: absolute; top: 30px; right: 30px;
    font-size: 28px; color: #fff; cursor: pointer;
    background: none; border: none;
}
.search-overlay .search-container { width: 80%; max-width: 600px; }
.search-overlay .search-label {
    font-family: 'Inter', sans-serif;
    font-size: 18px; line-height: 2.1; color: #1d1d1f; margin-bottom: 8px;
}
.search-overlay .search-input-wrap {
    display: flex; align-items: center;
    border-bottom: 1px solid #555;
}
.search-overlay .search-input-wrap input {
    flex: 1; background: none; border: none; outline: none;
    color: #1d1d1f; font-size: 28px; font-family: 'Inter', sans-serif;
    padding: 10px 0; line-height: 2;
}
.search-overlay .search-input-wrap input::placeholder { color: #555; }

/* ============ HERO ============ */
.hero-section {
    min-height: 62vh;
    display: flex; align-items: center;
    background-color: #F4F4F4;
    position: relative;
    overflow: hidden;
}
.hero-section .hero-bg {
    position: absolute;
    top: 0; right: 0;
    width: 28%;
    height: 100%;
    background-image: url('../img/hero-product.jpg');
    background-position: center right;
    background-repeat: repeat-y;
    background-size: 100% auto;
    opacity: 0.15;
}
.hero-content {
    position: relative; z-index: 1;
    padding: 80px 0;
    max-width: 900px;
    margin: 0 10% 0 10%;
    width: 70%;
}
.hero-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    background: #000000;
    padding: 8px 14px;
    border-radius: 50px;
    margin-bottom: 15px;
}
.hero-content .hero-title {
    font-family: 'Jost', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.08;
    color: #000;
    margin-bottom: 16px;
}
.hero-content .hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    line-height: 1.6;
    margin-bottom: 30px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; font-size: 16px; font-weight: 500;
    border-radius: 4px; transition: all 0.3s ease;
    cursor: pointer; border: none; font-family: 'Inter', sans-serif;
}
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: #6EC1E4; }
.btn-secondary { background: transparent; color: #000; border: 2px solid #000; }
.btn-secondary:hover { background: #6EC1E4; color: #fff; border-color: #6EC1E4; }

/* ============ SPACER ============ */
.spacer18 { height: 18px; }

/* ============ CATEGORY BUTTONS ============ */
.category-section { padding: 20px 0; }
.category-list {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 5px;
}
.category-btn {
    display: inline-block;
    padding: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 500;
    color: #fff;
    background: #000;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.category-btn:hover { background: #6EC1E4; }

/* ============ DIVIDER ============ */
.section-divider { padding: 15px 0; }
.divider-pattern {
    width: 100%; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' overflow='visible' height='100%25' viewBox='0 0 120 26' fill='%23000000' stroke='none'%3E%3Cpolygon points='0,14.4 0,21 11.5,12.4 21.3,20 30.4,11.1 40.3,20 51,12.4 60.6,20 69.6,11.1 79.3,20 90.1,12.4 99.6,20 109.7,11.1 120,21 120,14.4 109.7,5 99.6,13 90.1,5 79.3,14.5 71,5.7 60.6,12.4 51,5 40.3,14.5 31.1,5 21.3,13 11.5,5'/%3E%3C/svg%3E") repeat-x;
    background-size: 120px 20px;
    opacity: 0.35;
}

/* ============ SECTION TITLES ============ */
.section { padding: 40px 0; }
.section-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 500;
    color: #FFFFFF;
    background: #000000;
    padding: 8px 14px;
    border-radius: 50px;
    margin-bottom: 15px;
}
.section-title {
    font-family: 'Jost', sans-serif;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #000;
}
.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #505050;
    text-align: center;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* ============ PRODUCT GRID ============ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.product-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #eee;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.product-card .product-image { position: relative; overflow: hidden; }
.product-card .product-image img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-card .product-flags { position: absolute; top: 10px; left: 10px; }
.product-card .product-flags .flag {
    background: #ec4249; color: #fff;
    font-size: 10px; font-weight: 600;
    text-transform: uppercase;
    padding: 3px 7px; border-radius: 2px;
}
.product-card .product-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-card .quick-view {
    padding: 8px 18px; background: #fff; color: #000;
    font-size: 12px; font-weight: 600; border-radius: 3px; cursor: pointer;
}
.product-card .quick-view:hover { background: #ec4249; color: #fff; }
.product-card .product-info { padding: 14px; }
.product-card .product-name {
    font-size: 14px; font-weight: 500; color: #000;
    margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .product-name:hover { color: #ec4249; }
.product-card .product-price { font-size: 17px; font-weight: 700; color: #ec4249; }

/* ============ FEATURES ============ */
.features-section { padding: 30px 0; margin-bottom: 20px; }
.features-grid { display: flex; align-items: stretch; max-width: 1600px; margin: 0 auto; padding: 0 15px; }
.features-image-col { width: 62%; padding-right: 20px; }
.features-image-col .feature-img-wrap {
    border-radius: 24px; overflow: hidden; min-height: 500px;
}
.features-image-col .feature-img-wrap img { width: 100%; height: 100%; object-fit: cover; min-height: 500px; }
.features-list-col { width: 38%; padding-left: 20px; }
.features-list-col .feat-item {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 56px 32px 0 32px;
    border-radius: 16px;
    transition: background 0.3s ease;
    margin-bottom: 0;
}
.features-list-col .feat-item:hover { background: #F4F4F4; }
.features-list-col .feat-icon {
    width: 40px; height: 40px; min-width: 40px;
    background: #000; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #fff;
    padding: 12px;
}
.features-list-col .feat-text h4 {
    font-family: 'Jost', sans-serif;
    font-size: 20px; font-weight: 600; color: #000; margin-bottom: 4px;
}
.features-list-col .feat-text p {
    font-family: 'Inter', sans-serif;
    font-size: 16px; color: #505050; line-height: 1.5;
}
.features-list-col .feat-item:last-child { padding: 56px 32px 7px 32px; }

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
    display: flex; flex-wrap: wrap;
    max-width: 1470px; margin: 0 auto;
}
.testimonial-card {
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
}
.testimonial-inner {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}
.testimonial-inner:hover { transform: translateY(-2px); }
.testimonial-inner .stars { color: #ffd700; font-size: 15px; margin-bottom: 12px; }
.testimonial-inner .testimonial-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px; color: #505050; line-height: 1.5; margin-bottom: 14px; font-style: italic;
}
.testimonial-inner .testimonial-author { font-size: 14px; font-weight: 600; color: #000; }
.testimonial-inner .testimonial-date { font-size: 16px; color: #000; }

/* ============ FOOTER ============ */
.site-footer {
    background: #F4F4F4;
    padding: 50px 0 0;
    margin-top: 80px;
}
.footer-grid {
    display: flex; flex-wrap: wrap;
    max-width: 1200px; margin: 0 auto; padding: 0 15px 35px;
}
.footer-logo-col { width: 34%; text-align: center; }
.footer-logo-col img { width: 41%; max-width: 51%; margin-bottom: 14px; display: inline-block; }
.footer-col { width: 22%; }
.footer-col h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 17px; font-weight: 500; margin-bottom: 10px; color: #000;
}
.footer-col ul li { margin-bottom: 0; }
.footer-col ul li a {
    font-family: 'Poppins', sans-serif;
    font-size: 17px; font-weight: 500; color: #000;
    line-height: 2.1; letter-spacing: -0.1px;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: #6EC1E4; }
.footer-bottom {
    background: #F4F4F4;
    border-top: none;
    padding: 17px 0 0;
    margin-bottom: 21px;
    text-align: left;
    max-width: 1200px; margin: 0 auto 21px; padding: 17px 15px 0;
}
.footer-bottom p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px; font-weight: 500; color: #000;
}

/* ============ LIVE CHAT ============ */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 999; }
.chat-toggle {
    width: 54px; height: 54px; background: #25d366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 26px; color: #fff;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: transform 0.3s ease; border: none;
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-box {
    position: absolute; bottom: 64px; right: 0;
    width: 340px; background: #fff;
    border-radius: 10px; box-shadow: 0 8px 35px rgba(0,0,0,0.15);
    overflow: hidden; display: none; border: 1px solid #e5e5e5;
}
.chat-box.active { display: block; }
.chat-header { background: #f5f5f5; padding: 14px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e5e5e5; }
.chat-header .chat-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, #ec4249, #d6363d); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #fff; }
.chat-header .chat-info h4 { font-size: 14px; font-weight: 600; color: #333; }
.chat-header .chat-info span { font-size: 11px; color: #25d366; }
.chat-header .chat-close { margin-left: auto; background: none; border: none; color: #999; font-size: 22px; cursor: pointer; }
.chat-messages { padding: 16px; max-height: 340px; overflow-y: auto; background: #fafafa; }
.chat-message { margin-bottom: 12px; }
.chat-message .message-bubble {
    display: inline-block; padding: 10px 14px; border-radius: 10px;
    font-size: 13px; line-height: 1.5; max-width: 88%;
}
.chat-message.bot { text-align: left; }
.chat-message.bot .message-bubble { background: #fff; color: #333; border: 1px solid #e5e5e5; border-bottom-left-radius: 3px; }
.chat-message.user { text-align: right; }
.chat-message.user .message-bubble { background: #ec4249; color: #fff; border-bottom-right-radius: 3px; }
.chat-options { padding: 10px 16px 14px; display: flex; flex-wrap: wrap; gap: 6px; background: #fff; border-top: 1px solid #eee; }
.chat-option-btn {
    padding: 7px 12px; font-size: 12px;
    background: #f0f0f0; color: #333;
    border: 1px solid #ddd; border-radius: 16px;
    cursor: pointer; transition: all 0.3s ease; font-family: inherit;
}
.chat-option-btn:hover { background: #ec4249; color: #fff; border-color: #ec4249; }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-content { margin: 0 5% 0 5%; width: 90%; padding: 60px 0; }
    .hero-content .hero-title { font-size: 42px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .features-image-col { width: 100%; padding-right: 0; margin-bottom: 40px; }
    .features-list-col { width: 100%; padding-left: 0; margin-top: 20px; }
    .features-grid { flex-direction: column; }
    .testimonial-card { width: 50%; }
    .section { padding: 30px 20px; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .header-row { margin: 0; border-radius: 0; }
    .main-nav {
        position: fixed; top: 0; left: -100%;
        width: 280px; height: 100%;
        background: #fff; flex-direction: column; align-items: flex-start;
        padding: 80px 20px 20px; transition: left 0.3s ease; z-index: 150;
        overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    }
    .main-nav.active { left: 0; }
    .main-nav-list { flex-direction: column; width: 100%; }
    .main-nav-list > li > a { color: #333; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
    .dropdown-menu, .mega-dropdown {
        position: static; opacity: 1; visibility: visible;
        transform: none; box-shadow: none; background: transparent;
        display: none; min-width: 100%; padding-left: 15px;
    }
    .main-nav-list > li:hover > .dropdown-menu { display: none; }
    .main-nav-list > li.open > .dropdown-menu { display: block; }
    .dropdown-menu li a { color: #555; border-bottom: 1px solid #f0f0f0; padding: 9px 0; }
    .mega-dropdown { flex-direction: column; }
    .mega-dropdown .mega-col h4 { color: #333; }

    .hero-content { margin: 0 20px; width: auto; padding: 40px 0; }
    .hero-content .hero-title { font-size: 32px; }
    .hero-section .hero-bg { display: none; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .section-title { font-size: 30px; }
    .testimonial-card { width: 100%; }
    .features-list-col .feat-item { padding: 32px !important; }
    .features-image-col .feature-img-wrap { min-height: 360px; }
    .features-image-col .feature-img-wrap img { min-height: 360px; }

    .footer-logo-col { width: 100%; margin-bottom: 30px; }
    .footer-col { width: 50%; }
    .footer-bottom { text-align: center; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero-content .hero-title { font-size: 26px; }
    .category-list { gap: 4px; }
    .category-btn { font-size: 11px; padding: 6px; }
    .footer-col { width: 100%; }
}