/* Cavrys Life Sciences - Main Stylesheet */

:root {
    --primary: #0d4f8b;
    --primary-dark: #083a66;
    --cyan: #00a8cc;
    --cyan-light: #e6f7fb;
    --green: #2ecc71;
    --green-light: #e8f8ef;
    --gray-50: #f8f9fb;
    --gray-100: #eef1f5;
    --gray-200: #dde3ea;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(13, 79, 139, 0.08);
    --shadow-hover: 0 8px 30px rgba(13, 79, 139, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
}

a { text-decoration: none; transition: var(--transition); }

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
    padding: 8px 0;
}
.top-bar a { color: var(--white); }
.top-bar a:hover { color: var(--cyan); }
.top-bar i { margin-right: 5px; }

/* Navbar */
.navbar { padding: 12px 0; transition: var(--transition); }
.navbar.scrolled { padding: 8px 0; box-shadow: var(--shadow) !important; }
.navbar-brand img { max-height: 50px; width: auto; }
.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--gray-800) !important;
    padding: 8px 16px !important;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-success {
    background: #25d366;
    border-color: #25d366;
    border-radius: 8px;
}
.btn-success:hover { background: #1da851; border-color: #1da851; }

/* Hero Slider */
.hero-section { position: relative; overflow: hidden; }
.hero-slide {
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    position: relative;
    overflow: hidden;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero-slide.slide-2 {
    background: linear-gradient(135deg, #083a66 0%, #2ecc71 100%);
}
.hero-slide.slide-3 {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--primary) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); padding: 60px 0; }
.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero-content p { font-size: 1.125rem; opacity: 0.9; margin-bottom: 28px; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}
.hero-buttons .btn { margin-right: 12px; margin-bottom: 8px; }
.hero-buttons .btn-light { color: var(--primary); font-weight: 600; }
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Section Styles */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-100); }
.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}
.section-title p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}
.section-label {
    display: inline-block;
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Category Cards */
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid transparent;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--cyan-light);
}
.category-icon {
    width: 70px;
    height: 70px;
    background: var(--cyan-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition);
}
.category-card:hover .category-icon {
    background: var(--primary);
    color: var(--white);
}
.category-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}
.category-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 16px;
}
.category-link {
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.product-card-image {
    position: relative;
    padding: 20px;
    background: var(--gray-50);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 500;
}
.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-category {
    font-size: 0.75rem;
    color: var(--cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-title {
    font-size: 1.125rem;
    margin: 8px 0;
    line-height: 1.3;
}
.product-title a { color: var(--primary); }
.product-title a:hover { color: var(--cyan); }
.product-composition {
    font-size: 0.8125rem;
    color: var(--gray-600);
    flex: 1;
    margin-bottom: 16px;
}
.product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-actions .btn { flex: 1; min-width: 100px; font-size: 0.8125rem; }

/* About Section */
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.about-image img { width: 100%; height: auto; }
.about-features { margin-top: 24px; }
.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}
.about-feature i {
    color: var(--green);
    font-size: 1.25rem;
    margin-right: 12px;
    margin-top: 2px;
}

/* Why Choose Us */
.feature-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}
.feature-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.feature-box i {
    font-size: 2.5rem;
    color: var(--cyan);
    margin-bottom: 16px;
}
.feature-box h4 { font-size: 1.125rem; margin-bottom: 8px; }
.feature-box p { font-size: 0.875rem; color: var(--gray-600); margin: 0; }

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    border-radius: var(--radius);
    padding: 48px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; }

/* Contact Section */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: 100%;
    text-align: center;
}
.contact-info-card i {
    font-size: 2rem;
    color: var(--cyan);
    margin-bottom: 12px;
}
.contact-info-card h4 { font-size: 1rem; margin-bottom: 8px; }
.contact-info-card p { font-size: 0.875rem; color: var(--gray-600); margin: 0; }
.contact-page-layout .contact-info-card {
    height: auto;
    margin-bottom: 16px;
}
.contact-page-layout .contact-info-card:last-child {
    margin-bottom: 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}
.page-header h1 { color: var(--white); font-size: 2.25rem; margin-bottom: 8px; }
.page-header .breadcrumb {
    justify-content: center;
    margin: 0;
}
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb-item.active { color: var(--white); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }

/* Shop Filters */
.shop-filters {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--gray-100);
    color: var(--gray-800);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}
.filter-pill:hover, .filter-pill.active {
    background: var(--primary);
    color: var(--white);
}

/* Product Detail */
.product-detail-image {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    text-align: center;
}
.product-detail-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}
.product-detail-info {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.product-detail-info .product-type {
    display: inline-block;
    background: var(--cyan-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.product-detail-info h1 { font-size: 2rem; margin-bottom: 16px; }
.product-meta { margin-bottom: 24px; }
.product-meta dt { font-weight: 600; color: var(--primary); font-size: 0.875rem; }
.product-meta dd { color: var(--gray-600); font-size: 0.9375rem; margin-bottom: 12px; }
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.quantity-selector label { font-weight: 600; margin: 0; }
.qty-input {
    width: 80px;
    text-align: center;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 8px;
}
.product-order-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.product-order-buttons .btn { padding: 12px 28px; font-weight: 600; }

/* Static Pages */
.content-page {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.content-page h2 { font-size: 1.5rem; margin-top: 32px; margin-bottom: 12px; }
.content-page h2:first-child { margin-top: 0; }
.content-page p, .content-page li { color: var(--gray-600); }
.content-page ul { padding-left: 20px; }

/* FAQ Accordion */
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
}
.faq-answer {
    padding: 0 24px 20px;
    color: var(--gray-600);
    display: none;
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* Contact Form */
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    padding: 10px 16px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.15);
}

/* Certifications */
.cert-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
}
.cert-card img {
    max-height: 120px;
    margin-bottom: 16px;
    object-fit: contain;
}

/* Footer */
.site-footer { margin-top: auto; }
.footer-top {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 40px;
}
.footer-top h5 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 20px;
}
.footer-text { opacity: 0.85; font-size: 0.9375rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.8); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    margin-bottom: 12px;
    font-size: 0.9375rem;
    opacity: 0.85;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer-contact i { margin-top: 3px; color: var(--cyan); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.125rem;
    transition: var(--transition);
}
.social-links a:hover { background: var(--cyan); transform: translateY(-2px); }
.footer-bottom {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 20px 0;
    font-size: 0.875rem;
}
.footer-legal a {
    color: rgba(255,255,255,0.7);
    margin-left: 20px;
}
.footer-legal a:hover { color: var(--white); }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}
@keyframes pulse {
    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); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}
.empty-state i { font-size: 3rem; color: var(--gray-200); margin-bottom: 16px; }

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-slide { min-height: 420px; }
    .section { padding: 60px 0; }
    .product-detail-info h1 { font-size: 1.5rem; }
}
@media (max-width: 767px) {
    .hero-content h1 { font-size: 1.75rem; }
    .hero-slide { min-height: 380px; }
    .section-title h2 { font-size: 1.75rem; }
    .cta-banner { padding: 32px 24px; }
    .content-page { padding: 24px; }
    .footer-legal a { margin-left: 12px; }
}
