/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1A1A1A; /* Deep Charcoal for body text */
    background-color: #F8F9FA; /* Clean Slate background */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
.site-header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: #1A1A1A;
}

.nav-menu a:hover {
    color: #F2741F !important; /* Cendco Orange on hover */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #F2741F; /* Cendco Orange */
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #d45f0f; /* Darker shade of orange */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #2C3E50; /* Lab Navy */
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: #1e2b37;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Cards & Sections */
.section-title {
    color: #1A1A1A; /* Deep Charcoal */
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #F2741F; /* Cendco Orange */
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background-color: white;
    border: 1px solid #E9ECEF; /* Soft Frost borders */
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h3 {
    color: #2C3E50; /* Lab Navy */
    margin-bottom: 0.5rem;
}

.card .highlight-icon {
    color: #F2741F; /* Cendco Orange for icons */
}

/* Category grid (for agriculture, lab, public health pages) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-item {
    text-align: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E9ECEF; /* Soft Frost */
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: scale(1.03);
}

.category-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.category-item h3 {
    color: #1A1A1A;
    padding: 1rem 0 0.5rem;
}

.category-item p {
    color: #2C3E50;
    padding: 0 1rem 1rem;
}

/* Product specific styles */
.product-list {
    list-style: none;
}

.product-item {
    display: flex;
    gap: 2rem;
    background: white;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #E9ECEF;
}

.product-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 4px;
}

.product-details h3 {
    color: #1A1A1A;
}

.product-price {
    color: #F2741F; /* Cendco Orange for price */
    font-size: 1.3rem;
    font-weight: bold;
}

.in-stock {
    color: green;
}

.out-of-stock {
    color: red;
}

/* Footer */
.site-footer {
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .product-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.logo-img{
    max-height: 80px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card:hover img {
    transform: scale(1.05);
}

.in-stock {
    color: #28a745;
}

.out-of-stock {
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card {
        max-width: 100%;
    }
}

/* Custom Carousel Styles */
.gallery-swiper {
    width: 100%;
    height: 100%;
    padding-bottom: 3rem !important;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.swiper-slide-active {
    transform: scale(1.05);
    z-index: 2;
}

.slide-card {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: white;
}

.slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide-card:hover img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.swiper-slide-active .slide-caption {
    transform: translateY(0);
}

.slide-caption h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Swiper Navigation Customization */
.swiper-button-next,
.swiper-button-prev {
    color: #F2741F !important;
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #F2741F;
    color: white !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #2C3E50;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #F2741F;
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide-card {
        height: 300px;
    }
    
    .swiper-slide-active {
        transform: scale(1.02);
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Add to your existing style.css */

/* Navigation Menu Styles */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu li a {
    color: #1e2b37; /* Clean Slate text */
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Hover effect */
.nav-menu li a:hover {
    color: #F2741F !important; /* Cendco Orange on hover */
}

/* Active page indicator */
.nav-menu li a.active {
    color: #F2741F !important; /* Cendco Orange for active page */
    font-weight: 600;
}

/* Underline animation for active and hover */
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background-color: #F2741F;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Optional: Different style for active page - you can choose one */

/* Option 1: Bottom border only (already included above) */

/* Option 2: Background highlight (uncomment below and comment the ::after styles if preferred) */
/*
.nav-menu li a.active {
    background-color: rgba(242, 116, 31, 0.15); 
    border-radius: 4px;
    padding: 0.5rem 1rem;
}
*/

/* Responsive navigation */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-menu li a {
        padding: 0.25rem 0.5rem;
    }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 a:hover {
    color: #F2741F !important;
}

.in-stock {
    color: #28a745;
}

.out-of-stock {
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card {
        max-width: 100%;
    }
    
    .product-card .btn {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
}

/* Gallery Thumbnail Styles */
.gallery-thumbnail {
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.gallery-thumbnail:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.gallery-thumbnail.active {
    border-color: #F2741F !important;
    box-shadow: 0 4px 10px rgba(242, 116, 31, 0.2) !important;
}

#main-product-image {
    transition: opacity 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

/* Optional: Add loading indicator */
#main-product-image.loading {
    opacity: 0.5;
}

/* Hover effects for interactive elements (static design only) */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .cart-grid {
        grid-template-columns: 1fr !important;
    }
    
    .cart-item {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .item-actions {
        justify-content: center !important;
    }
    
    .order-summary {
        position: static !important;
        margin-top: 2rem;
    }
}

/* Animation for empty cart state */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#empty-cart-state {
    animation: fadeIn 0.5s ease;
}

/* Custom scrollbar for order summary */
div[style*="overflow-y: auto"]::-webkit-scrollbar {
    width: 6px;
}

div[style*="overflow-y: auto"]::-webkit-scrollbar-track {
    background: #E9ECEF;
    border-radius: 10px;
}

div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
    background: #F2741F;
    border-radius: 10px;
}

div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb:hover {
    background: #d45f0f;
}

/* Responsive design */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }
    
    .order-summary {
        position: static !important;
        margin-top: 2rem;
    }
    
    input, textarea {
        font-size: 16px !important; /* Prevents zoom on mobile */
    }
}

/* Shopping Cart Basket Styles */
.cart-basket {
    position: relative;
}

.cart-icon {
    color: #F2741F !important;
    text-decoration: none;
    padding: 0.5rem !important;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: #F2741F !important;
}

.cart-icon.active {
    color: #F2741F !important;
}

.cart-count {
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Cart Preview Dropdown */
.cart-preview {
    animation: slideDown 0.3s ease;
    transform-origin: top right;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    
    .mobile-toggle {
        display: block !important;
    }
    
    .nav-menu {
        display: none !important;
        width: 100%;
        flex-direction: column;
        gap: 1rem !important;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .cart-basket {
        width: 100%;
        text-align: center;
    }
    
    .cart-icon {
        justify-content: center;
        width: 100%;
    }
    
    .cart-count {
        top: -5px;
        right: 50%;
        margin-right: -30px;
    }
    
    .cart-preview {
        display: none !important; /* Hide preview on mobile */
    }
}

/* Desktop hover effect for cart */
@media (min-width: 769px) {
    .cart-basket:hover .cart-icon {
        color: #F2741F !important;
    }
}

/* Hover effects */
article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

article:hover img {
    transform: scale(1.05);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Topic filter hover */
a[style*="background: #E9ECEF"]:hover {
    background: #F2741F !important;
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-post-grid {
        grid-template-columns: 1fr !important;
    }
    
    .featured-post-image {
        height: 250px !important;
    }
    
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Blog content styling */
.blog-content h2 {
    color: #1A1A1A;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.blog-content h3 {
    color: #1A1A1A;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ul, .blog-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content strong {
    color: #1A1A1A;
}

.blog-content a {
    color: #F2741F;
    text-decoration: none;
}

.blog-content a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .post-content-grid {
        grid-template-columns: 1fr !important;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* ===============================
   CENDCO PARTNERS SECTION
================================ */

.cendco-partners-section {
    padding: 70px 20px;
    background: #f7f7f7;
}

.cendco-partners-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cendco-partners-header {
    text-align: center;
    margin-bottom: 50px;
}

.cendco-partners-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.cendco-partners-description {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
}

/* CATEGORY */

.cendco-partners-category {
    margin-bottom: 45px;
}

.cendco-partners-category-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    border-left: 4px solid #2e7d32;
    padding-left: 12px;
}

/* GRID */

.cendco-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

/* CARD */

.cendco-partners-card {
    background: white;
    border-radius: 6px;
    padding: 14px 18px;
    border: 1px solid #e4e4e4;
    transition: all 0.2s ease;
}

.cendco-partners-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.cendco-partners-name {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.variant-btn {
    transition: all 0.3s ease;
}
.variant-btn:hover {
    border-color: #F2741F;
    background: #FEF5E8;
}
.variant-btn.active {
    border-color: #F2741F;
    background: #F2741F;
    color: white;
}

/* Search form in navbar */
.search-form {
    position: relative;
}
.search-form input {
    transition: width 0.3s ease;
    width: 180px;
}
.search-form input:focus {
    width: 250px;
}
@media (max-width: 768px) {
    .search-item {
        width: 100%;
        margin-top: 0.5rem;
    }
    .search-form {
        width: 100%;
    }
    .search-form input {
        width: 100%;
    }
    .search-form input:focus {
        width: 100%;
    }
}

.whatsapp-float {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background-color: #25D366;
        color: white;
        border-radius: 50px;
        text-align: center;
        font-size: 1.8rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 1000;
        transition: all 0.3s ease;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }
    .whatsapp-float:hover {
        background-color: #128C7E;
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }
    .whatsapp-tooltip {
        position: absolute;
        right: 70px;
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 0.8rem;
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }
    .whatsapp-float:hover .whatsapp-tooltip {
        opacity: 1;
    }
    @media (max-width: 768px) {
        .whatsapp-float {
            width: 50px;
            height: 50px;
            font-size: 1.5rem;
            bottom: 20px;
            right: 20px;
        }
    }

    .partner-card {
        transition: transform 0.3s ease;
    }
    .partner-card:hover {
        transform: translateY(-5px);
    }
    .partners-swiper .swiper-button-next,
    .partners-swiper .swiper-button-prev {
        color: #F2741F;
        background: rgba(255,255,255,0.9);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    .partners-swiper .swiper-button-next:after,
    .partners-swiper .swiper-button-prev:after {
        font-size: 1rem;
    }
    @media (max-width: 640px) {
        .partners-swiper .swiper-button-next,
        .partners-swiper .swiper-button-prev {
            display: none;
        }
    }