/* ═══════════════════════════════════════════════════════════════════════════════
   JB Masala – Public Frontend Styles
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    --primary:         #2d6a4f;
    --primary-light:   #40916c;
    --primary-dark:    #1b4332;
    --primary-bg:      #e8f5e9;
    --accent:          #52b788;
    --text-dark:       #1b1b1b;
    --text-muted:      #6c757d;
    --body-bg:         #ffffff;
    --section-bg:      #f8faf9;
    --footer-bg:       #1a2e23;
    --card-radius:     12px;
    --shadow-sm:       0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:       0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg:       0 10px 40px rgba(0,0,0,0.12);
    --navbar-height:   72px;
    --whatsapp-green:  #25d366;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--body-bg);
    overflow-x: hidden;
}

/* ─── Navbar ──────────────────────────────────────────────────────────────── */
.frontend-navbar {
    height: var(--navbar-height);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.9) !important;
    box-shadow: none;
}
.frontend-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.98) !important;
}
.frontend-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary) !important;
    gap: 8px;
}
.frontend-navbar .navbar-brand i {
    font-size: 1.6rem;
}
.frontend-navbar .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.92rem;
}
.frontend-navbar .nav-link:hover,
.frontend-navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-bg);
}

/* ─── Hero Banner ─────────────────────────────────────────────────────────── */
.hero-section {
    margin-top: var(--navbar-height);
}
.hero-swiper {
    width: 100%;
    height: 550px;
}
.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,67,50,0.75) 0%, rgba(45,106,79,0.55) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 24px;
    font-weight: 300;
}
.hero-btn {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.hero-btn:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}
.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
    width: 28px;
    border-radius: 5px;
}
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    opacity: 1;
}

/* ─── Sections ────────────────────────────────────────────────────────────── */
.section {
    padding: 80px 0;
}
.section-alt {
    background: var(--section-bg);
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}
.section-line {
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    margin-bottom: 16px;
}

/* ─── About Section ───────────────────────────────────────────────────────── */
.about-img {
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}
.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

/* ─── Product Cards ───────────────────────────────────────────────────────── */
.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.product-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f8f8f8;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img {
    transform: scale(1.05);
}
.product-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-title a {
    color: inherit;
    text-decoration: none;
}
.product-card-title a:hover {
    color: var(--primary);
}
.product-card-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 12px;
}
.product-card-actions {
    margin-top: auto;
}

/* ─── Why Choose Us ───────────────────────────────────────────────────────── */
.feature-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--card-radius);
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
    transform: translateY(-4px);
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}
.feature-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* ─── CTA Section ─────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 80px 0;
}
.cta-section h2 {
    font-weight: 800;
    font-size: 2rem;
}
.cta-section p {
    opacity: 0.85;
    font-size: 1.05rem;
}

/* ─── WhatsApp Button ─────────────────────────────────────────────────────── */
.btn-whatsapp {
    background: var(--whatsapp-green);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-whatsapp:hover {
    background: #20bd5a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.btn-whatsapp-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 50px;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s;
    animation: waPulse 2s infinite;
}
.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.frontend-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.frontend-footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.frontend-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.frontend-footer a:hover {
    color: var(--accent);
}
.footer-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff !important;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-brand i {
    color: var(--accent);
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links li a {
    font-size: 0.92rem;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 8px;
    transition: all 0.2s;
}
.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ─── Breadcrumb ──────────────────────────────────────────────────────────── */
.page-breadcrumb {
    padding: calc(var(--navbar-height) + 30px) 0 30px;
    background: var(--section-bg);
}
.page-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

/* ─── Pricing Table ──────────────────────────────────────────────────────── */
.pricing-table {
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid #e9ecef;
}
.pricing-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
}
.pricing-table tbody td {
    font-size: 0.92rem;
    vertical-align: middle;
}
.pricing-table .price-col {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

/* ─── Filter Bar ──────────────────────────────────────────────────────────── */
.filter-bar {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--card-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

/* ─── Empty State ─────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.4;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-swiper { height: 420px; }
    .hero-content h1 { font-size: 2.2rem; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.6rem; }
}
@media (max-width: 767.98px) {
    .hero-swiper { height: 350px; }
    .hero-content h1 { font-size: 1.7rem; }
    .hero-content p { font-size: 0.95rem; }
    .hero-btn { padding: 10px 24px; font-size: 0.88rem; }
    .section { padding: 48px 0; }
    .section-title { font-size: 1.4rem; }
    .cta-section h2 { font-size: 1.5rem; }
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev { display: none; }
    .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 1.4rem; }
}

/* ─── Products Swiper ─────────────────────────────────────────────────────── */
.products-swiper .swiper-pagination {
    position: relative;
    margin-top: 24px;
}
.products-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination .page-link {
    color: var(--primary);
    border-color: #e9ecef;
    font-weight: 500;
    font-size: 0.9rem;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination .page-link:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ─── Product Detail Extras ──────────────────────────────────────────────── */
.product-detail-img {
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}
@media (max-width: 767.98px) {
    .product-detail-img { aspect-ratio: 4/3; }
    .pricing-table { font-size: 0.85rem; }
    .pricing-table thead th { font-size: 0.82rem; }
}

/* ─── Default Hero Gradient Slides ───────────────────────────────────────── */
.hero-gradient-1 {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 40%, #40916c 100%) !important;
}
.hero-gradient-2 {
    background: linear-gradient(135deg, #264653 0%, #2a9d8f 50%, #52b788 100%) !important;
}
.hero-gradient-3 {
    background: linear-gradient(135deg, #3d2b1f 0%, #8b5e3c 40%, #d4a574 100%) !important;
}
.hero-gradient-1::before,
.hero-gradient-2::before,
.hero-gradient-3::before {
    background: rgba(0,0,0,0.15) !important;
}

/* ─── Enquiry Form ───────────────────────────────────────────────────────── */
.enquiry-form-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f0f0f0;
}
@media (max-width: 767.98px) {
    .enquiry-form-card { padding: 20px; }
}
