/* ===========================================
   MAHIVERSE GLOBLE - PREMIUM STYLESHEET V5
   Clean, Organized, High-End Global Export Brand
=========================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

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

body { 
    font-family: 'DM Sans', sans-serif; 
    background: #faf8f4; 
    color: #2b2b2b; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
    font-display: swap; /* Enforces instant text visibility */
}

h1, h2, h3, .logo { 
    font-family: 'Playfair Display', serif;
    font-display: swap; 
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ===========================================
   PREMIUM PRELOADER
=========================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader img {
    width: 120px;
    margin-bottom: 25px;
    z-index: 2;
}

#loader h2 {
    color: #14532d;
    font-size: 32px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

#loader p {
    color: #666;
    font-size: 15px;
}

.line-loader {
    width: 140px;
    height: 3px;
    background: #e0dcd3;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.line-loader::after {
    content: '';
    position: absolute;
    left: -50%;
    height: 100%;
    width: 50%;
    background: #D4AF37;
    animation: lineProgress 1.5s infinite ease-in-out;
}

@keyframes lineProgress {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* ===========================================
   HEADER & NAVIGATION
=========================================== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #14532d;
    letter-spacing: 0.5px;
}

.logo span {
    color: #D4AF37;
    font-weight: 400;
    font-style: italic;
}

.logo img {
    opacity: 0;
    transform: translate(15px, 15px); 
    animation: quickDiagonalEntrance 0.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes quickDiagonalEntrance {
    0% {
        opacity: 0;
        transform: translate(15px, 15px);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

.navbar {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navbar a {
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.navbar a:hover, .navbar a.active {
    color: #14532d;
}

.order-btn {
    background: #14532d;
    color: #fff !important;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(20, 83, 45, 0.15);
}

.order-btn:hover {
    background: #D4AF37;
    color: #14532d !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 87, 0.25);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #14532d;
    background: none;
    border: none;
}

.nav-cart-trigger {
    position: relative;
    font-weight: 600 !important;
}

/* ===========================================
   HERO SECTION
=========================================== */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(to right, #faf8f4 60%, #f4f0e6);
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text .tagline {
    display: inline-block;
    color: #14532d;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 54px;
    line-height: 1.15;
    color: #2c1a04;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    align-items: center; 
    gap: 20px;
}

.btn {
    display: inline-flex; 
    align-items: center;   
    justify-content: center; 
    padding: 0 35px;       
    height: 54px;          
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    box-sizing: border-box; 
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #14532d;
    color: #fff;
    box-shadow: 0 4px 15px rgba(20, 83, 45, 0.2);
    border: none;
}

.btn-primary:hover {
    background: #1b6b3a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #14532d;
    border: 2px solid #14532d;
}

.btn-secondary:hover {
    background: rgba(20, 83, 45, 0.05);
    transform: translateY(-2px);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.floating-img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: softFloat 4s infinite ease-in-out;
}

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

/* ===========================================
   COMMON SECTIONS & GLOBAL TITLES
=========================================== */
section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 15px;
}

.section-header h2 {
    font-size: 38px;
    color: #2c1a04;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 17px;
    max-width: 600px;
    margin: auto;
}

/* ===========================================
   TRUST MATRIX
=========================================== */
.trust-section {
    background: #ffffff;
}

.trust-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.trust-box {
    background: #faf8f4;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.trust-box .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 20px;
}

.trust-box h3 {
    color: #14532d;
    font-size: 20px;
    margin-bottom: 12px;
}

.trust-box p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ===========================================
   METRIC COUNT UNITS
=========================================== */
.stats-section {
    background: #14532d;
    padding: 70px 0;
}

.stats-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-box h2 {
    color: #D4AF37;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'DM Sans', sans-serif;
}

.stat-box p {
    color: #eaf2ec;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* ===========================================
   PORTFOLIO PRODUCTS SHOWCASE
=========================================== */
.products-showcase {
    background: #ffffff;
}

.product-grid {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.card {
    background: #faf8f4;
    border-radius: 24px;
    overflow: hidden;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-img-container {
    width: 100%;
    height: 280px;
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 25px;
}

.product-img-container img {
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.card:hover .product-img-container img {
    transform: scale(1.04);
}

.card h3 {
    color: #2c1a04;
    font-size: 24px;
    margin-bottom: 12px;
}

.card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.variant-selector {
    margin-bottom: 20px;
    width: 100%;
}

.weight-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    outline: none;
}

.card-footer {
    width: 100%;
}

.btn-card {
    width: 100%;
    background: #14532d;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-card:hover {
    background: #1b6b3a;
}

/* Pipeline Cards */
.pipeline-card {
    opacity: 0.88;
    background: #fcfbfa;
    border: 2px dashed #ebdcb9;
}

.grey-scale-bg {
    background: #f2efe9;
    width: 100%;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 12px;
}

.coming-soon-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #b45309;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.placeholder-icon {
    font-size: 72px;
    filter: grayscale(30%);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ===========================================
   CLIENT & CUSTOMER REVIEWS
=========================================== */
.reviews-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #eee;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.review-box {
    background: #faf8f4;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #ebdcb9;
    position: relative;
}

.stars {
    color: #eab308;
    margin-bottom: 12px;
    font-size: 18px;
    letter-spacing: 1px;
}

.review-text {
    font-style: italic;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 15px;
}

.reviewer-name {
    font-weight: 700;
    color: #14532d;
    font-size: 14px;
}

/* ===========================================
   CORPORATE FOOTER
=========================================== */
.footer {
    background: #113f23;
    color: #ffffff;
    padding: 80px 0 30px;
    border-top: 6px solid #14532d;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.brand-box h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ffffff;
}

.brand-box span {
    color: #D4AF37;
    font-style: italic;
    font-weight: 400;
}

.brand-box p {
    color: #a3c2ae;
    max-width: 320px;
    font-size: 14px;
}

.footer-box h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D4AF37;
    margin-bottom: 25px;
}

.links-box a {
    display: block;
    color: #cdedd7;
    font-size: 15px;
    margin-bottom: 12px;
}

.links-box a:hover {
    color: #D4AF37;
    transform: translateX(4px);
}

.contact-box p {
    color: #cdedd7;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-bottom {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #a3c2ae;
    font-size: 14px;
}

/* ===========================================
   FLOATING UTILITIES
=========================================== */
.floating-whatsapp {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: whatsappPulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.08);
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
}

#backToTop {
    position: fixed;
    left: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    background: #ffffff;
    color: #14532d;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    z-index: 9999;
    display: none;
}

/* ===========================================
   RIGHT SLIDE-OUT CART SIDEBAR ENGINE
=========================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    z-index: 10001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto; 
    max-height: 100vh;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid #f3ede2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 22px;
    color: #14532d;
}

.close-cart-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.close-cart-btn:hover {
    color: #D4AF37;
}

.cart-items-body {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.empty-msg {
    text-align: center;
    color: #888;
    margin-top: 40px;
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #faf8f4;
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 15px;
}

.cart-item-details h4 {
    color: #2c1a04;
    font-size: 15px;
    margin-bottom: 4px;
}

.cart-item-details p {
    font-size: 13px;
    color: #666;
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: #c0392b;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
}

.remove-item-btn:hover {
    text-decoration: underline;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #f3ede2;
    background: #faf8f4;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: #2c1a04;
    margin-bottom: 20px;
}

#cart-total-amount {
    color: #14532d;
}

.payment-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.checkout-btn-premium {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-upi-checkout {
    background: #14532d;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(20, 83, 45, 0.15);
}

.btn-upi-checkout:hover {
    background: #1b6b3a;
    transform: translateY(-2px);
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
=========================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-text p {
        margin: 0 auto 35px;
    }
    .hero-actions {
        justify-content: center;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
        padding: 0 15px;
    }

    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
    }

    .navbar {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: #ffffff;
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        border-top: 2px solid #14532d;
        gap: 15px !important;
        z-index: 9998;
    }

    .navbar.active {
        display: flex !important;
        animation: slideDownMenu 0.3s ease-out forwards;
    }

    .navbar a {
        width: 100%;
        padding: 12px 15px;
        background: #faf8f4;
        border-radius: 8px;
        text-align: left;
        font-size: 16px;
    }

    .navbar a.order-btn {
        text-align: center;
        background: #14532d;
        color: #fff !important;
        margin-top: 5px;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .section-header h2 {
        font-size: 28px !important;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 15px;
        padding: 0 10px;
    }

    .trust-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }

    .trust-box {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .stats-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .product-grid {
        display: grid;
        grid-template-columns: 1fr !important; 
        gap: 30px;
        padding: 0 10px;
    }

    .card {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: left;
        padding: 20px;
    }

    .footer-box {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .cart-sidebar {
        max-width: 100%;
        right: -100%;
    }
}

/* Mobile Menu Animation */
@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
