/* =========================================================
   AMUL RATAN MAKHANA - PREMIUM CORPORATE CMS & E-COMMERCE DESIGN SYSTEM
   Brand Palette: Royal Forest Green & Golden Amber / Honey Makhana Glow
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --brand-primary: #0a522c;
    --brand-primary-light: #0f6e3c;
    --brand-primary-dark: #06381d;
    --brand-gold: #d4a340;
    --brand-gold-light: #f5c469;
    --brand-gold-dark: #a67c22;
    --brand-dark: #121820;
    --brand-light: #f9fbf9;
    --brand-cream: #fffaf0;
    --brand-border: #e2e8f0;
    --brand-gray-light: #f1f5f9;
    --brand-text-muted: #64748b;
    --brand-text-main: #1e293b;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(10, 82, 44, 0.08);
    --shadow-lg: 0 10px 30px rgba(10, 82, 44, 0.12);
    --shadow-hover: 0 15px 35px rgba(10, 82, 44, 0.18);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--brand-text-main);
    background-color: var(--brand-light);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
}

/* TOPBAR */
.topbar {
    background: linear-gradient(90deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(212, 163, 64, 0.3);
}

.topbar a {
    color: #f8fafc;
    text-decoration: none;
    transition: var(--transition-fast);
}

.topbar a:hover {
    color: var(--brand-gold-light);
}

/* NAVBAR */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    transition: var(--transition-smooth);
}

.navbar-brand img {
    height: 52px;
    object-fit: contain;
    border-radius: 6px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155 !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-primary) !important;
    background-color: rgba(10, 82, 44, 0.06);
}

/* BUTTONS */
.btn-brand-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(10, 82, 44, 0.25);
    transition: var(--transition-smooth);
}

.btn-brand-primary:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-brand-gold {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-light) 100%);
    color: #1e293b;
    border: none;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(212, 163, 64, 0.35);
    transition: var(--transition-smooth);
}

.btn-brand-gold:hover {
    background: linear-gradient(135deg, var(--brand-gold-dark) 0%, var(--brand-gold) 100%);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-brand-outline {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

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

/* HERO SECTION */
.hero-slider-section {
    position: relative;
    background: linear-gradient(135deg, #052614 0%, #0a4d29 50%, #0f6838 100%);
    color: #ffffff;
    padding: 70px 0 90px 0;
    overflow: hidden;
}

.hero-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 163, 64, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 163, 64, 0.2);
    border: 1px solid rgba(212, 163, 64, 0.5);
    color: #fde047;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--brand-gold-light);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #d1fae5;
    margin-bottom: 30px;
    max-width: 620px;
}

.hero-img-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(212, 163, 64, 0.4);
}

.hero-img-box img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-img-box:hover img {
    transform: scale(1.04);
}

.hero-stats-floating {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--brand-dark);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--brand-gold);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SECTION HEADINGS */
.section-tag {
    color: var(--brand-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--brand-dark);
}

/* CARDS */
.custom-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--brand-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(10, 82, 44, 0.25);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: var(--brand-gray-light);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.grade-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.origin-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fde047;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* SUTA GRADE SHOWCASE CARDS */
.suta-pill-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--brand-border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.suta-pill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-gold));
}

.suta-pill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-primary);
}

.suta-size-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 1.4rem;
    font-weight: 800;
    border: 2px dashed var(--brand-primary);
    transition: var(--transition-smooth);
}

.suta-pill-card:hover .suta-size-circle {
    background: var(--brand-primary);
    color: #ffffff;
    border-style: solid;
}

/* STATS COUNTER BAR */
.stats-counter-strip {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    color: #ffffff;
    padding: 40px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.stat-item h3 {
    color: var(--brand-gold-light);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-item p {
    color: #d1fae5;
    font-weight: 500;
    margin: 0;
}

/* FLOATING WHATSAPP & CHATBOT WIDGETS */
.floating-widget-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1050;
}

.whatsapp-float-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
}

.whatsapp-float-btn:hover {
    transform: scale(1.12);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.6;
    animation: pulse-ring-anim 2s infinite ease-out;
}

@keyframes pulse-ring-anim {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ai-chat-float-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-gold) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(10, 82, 44, 0.45);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ai-chat-float-btn:hover {
    transform: scale(1.12);
}

/* CHATBOT MODAL POPUP */
.chat-window {
    position: fixed;
    bottom: 95px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 48px);
    height: 480px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid var(--brand-border);
    display: none;
    flex-direction: column;
    z-index: 1060;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.chat-header {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.chat-bubble.bot {
    background: #ffffff;
    color: var(--brand-dark);
    align-self: flex-start;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chat-bubble.user {
    background: var(--brand-primary);
    color: #ffffff;
    align-self: flex-end;
}

.chat-footer {
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}

/* FOOTER */
.footer-main {
    background: #062312;
    color: #94a3b8;
    padding: 70px 0 25px 0;
    border-top: 4px solid var(--brand-gold);
}

.footer-main h5 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 22px;
}

.footer-main ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-main ul li {
    margin-bottom: 10px;
}

.footer-main ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-main ul li a:hover {
    color: var(--brand-gold-light);
    padding-left: 5px;
}

.footer-bottom {
    background: #021208;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #e2e8f0;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-copy {
    color: #cbd5e1;
    font-size: 0.88rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
}

.footer-bottom-link {
    color: #f1f5f9 !important;
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom-link:hover {
    color: var(--brand-gold-light) !important;
    text-decoration: underline;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

/* NAVBAR & MAIN CONTAINER ZERO-GAP ALIGNMENT */
.navbar-custom {
    margin: 0 !important;
    margin-bottom: 0 !important;
}

main[role="main"] {
    margin: 0 !important;
    padding: 0 !important;
}

/* ADMIN PANEL STYLING */
.admin-sidebar {
    background: #072a16;
    min-height: 100vh;
    color: #cbd5e1;
}

.admin-sidebar .nav-link {
    color: #cbd5e1 !important;
    padding: 12px 18px !important;
    border-radius: 8px;
    margin-bottom: 4px;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
}

.admin-kpi-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* =========================================================
   MOBILE & RESPONSIVE OPTIMIZATIONS (Tablet & Smartphone)
   ========================================================= */

@media (max-width: 991.98px) {
    .hero-slider-section {
        padding: 40px 0 50px 0;
    }
    
    .hero-title {
        font-size: 2.3rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 16px;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse .nav-link {
        padding: 10px 14px !important;
        border-bottom: 1px solid #f1f5f9;
    }

    .floating-widget-wrap {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .whatsapp-float-btn, .ai-chat-float-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .chat-container {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 75px;
        max-height: 75vh;
    }
}

@media (max-width: 767.98px) {
    .topbar {
        font-size: 0.78rem;
        padding: 5px 0;
    }

    .topbar .container {
        gap: 4px;
        justify-content: center !important;
        text-align: center;
    }

    .hero-slider-section {
        padding: 30px 0 40px 0;
    }

    .hero-title {
        font-size: 1.85rem;
        letter-spacing: -0.01em;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 4px 12px;
        margin-bottom: 14px;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .section-tag {
        font-size: 0.78rem;
    }

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

    .stat-item p {
        font-size: 0.85rem;
    }

    .footer-main {
        padding: 40px 0 0 0;
    }

    .footer-bottom {
        text-align: center;
        padding: 16px 0;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .product-card-body {
        padding: 16px;
    }

    .product-price-badge {
        font-size: 1.1rem;
    }

    /* Form and touch targets */
    .btn {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .form-control, .form-select {
        min-height: 42px;
        font-size: 0.92rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.65rem;
    }
    
    .navbar-brand img {
        height: 42px;
    }

    .hero-slider-section .btn {
        width: 100%;
    }
}