@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&display=swap');

:root {
    --main-green: #3c562e;
    --dark-green: #2a3d20;
    --accent-yellow: #ffea50;
    --accent-yellow-hover: #e6d348;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --bg-offwhite: #fafaf8;
    --border-color: rgba(60, 86, 46, 0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 30px rgba(60, 86, 46, 0.08);
    --shadow-hover: 0 20px 40px rgba(60, 86, 46, 0.12);
}

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

body {
    font-family: 'Onest', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-offwhite);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 110px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.15;
    color: var(--main-green);
    letter-spacing: -0.02em;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
}

.text-green { color: var(--main-green); }
.text-center { text-align: center; }

/* Buttons & Interactions */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 12px;
}

.btn-orange { /* Re-mapped to Yellow for class compatibility */
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    box-shadow: 0 8px 20px rgba(255, 234, 80, 0.3);
}

.btn-orange:hover {
    background-color: var(--accent-yellow-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 234, 80, 0.4);
}

.btn-white {
    background-color: white;
    color: var(--main-green);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-white:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    color: var(--dark-green);
}

/* Navbar */
.navbar-green {
    background-color: var(--main-green);
    padding: 12px 0;
    color: white;
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar-green.scrolled {
    background-color: rgba(60, 86, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.navbar-green .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

/* Groups nav links + button on the right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

.nav-links a:hover::after {
    width: 100%;
}

.brand-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}
.brand-logo:hover img {
    transform: scale(1.05);
}

/* Hero Bento */
.hero {
    padding-top: 0px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    overflow: visible;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 24px;
    font-weight: 400;
    white-space: normal;
}

.hero-content h1 strong {
    font-weight: 700;
    color: var(--main-green);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-image-single {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    overflow: hidden;
}

.hero-image-single img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: grayscale(100%) contrast(1.05);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
    display: block;
}

.hero-image-single:hover img {
    transform: scale(1.05) translateY(-10px);
    filter: grayscale(0%) contrast(1);
}


/* Feature Pills */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    width: 100%;
}

.feature-pill {
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 20px 8px 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
}

.feature-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--main-green);
}

.feature-pill img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feature-pill span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Services section */
.services-section {
    padding-top: 40px;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--main-green);
}

.service-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
    padding: 12px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.8s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 24px 24px 40px;
}

.service-content h3 {
    font-size: 1.25rem;
    color: var(--main-green);
    margin-bottom: 12px;
}

.service-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.service-icon-bottom {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: white;
    color: var(--main-green);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(60, 86, 46, 0.1);
    transition: var(--transition);
}

.service-card:hover .service-icon-bottom {
    transform: translateX(-50%) scale(1.15);
}

/* About Block */
.about-block {
    background-color: var(--main-green);
    margin: 100px 0;
    color: white;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 0 30px 60px rgba(60, 86, 46, 0.2);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px;
    align-items: center;
}

.about-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 24px;
}

.about-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-images {
    position: relative;
    height: 400px;
}

.truck-img {
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 120%;
    max-width: 700px;
    z-index: 2;
    transition: var(--transition);
    /* No border or radius — blends with the green background */
    border: none;
    border-radius: 0;
    background: transparent;
}

.about-block:hover .truck-img {
    transform: translateX(-10px);
}

.veg-box-img {
    position: absolute;
    right: 40px;
    top: 0px;
    width: 280px;
    border-radius: var(--radius-md);
    border: 6px solid var(--bg-offwhite);
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.about-block:hover .veg-box-img {
    transform: translateY(-10px) rotate(2deg);
}

/* Gallery / Wide Selection */
.gallery-section {
    padding-top: 60px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 40px 0 60px;
}

.filter-btn {
    padding: 12px 36px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: var(--main-green);
    color: white;
    border-color: var(--main-green);
    box-shadow: 0 10px 20px rgba(60, 86, 46, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 20px;
    position: relative;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(60, 86, 46, 0.2);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: white;
    color: var(--main-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    font-size: 1.5rem;
    transition: var(--transition);
}

.gallery-nav:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--accent-yellow);
}

.gallery-nav.prev { left: -28px; }
.gallery-nav.next { right: -28px; }

/* Why Choose Us */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.why-us-img {
    height: 550px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.why-us-img:hover {
    transform: scale(1.02);
}

.why-us-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.why-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    margin-left: -80px; 
    z-index: 2;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.why-card:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--main-green);
}

.why-card:nth-child(2) { margin-left: -30px; }
.why-card:nth-child(3) { margin-left: -100px; }

.why-card img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
}

.why-card p {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Footer Block */
.footer-block {
    background-color: var(--main-green);
    margin-top: 120px;
    padding: 100px 0;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.faq-list {
    list-style: none;
    margin-top: 32px;
}

.faq-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.faq-list li:hover {
    color: var(--accent-yellow);
    transform: translateX(10px);
}

.faq-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent-yellow);
    color: var(--text-dark);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

.call-btn:hover {
    border-color: var(--accent-yellow) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--text-dark);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.contact-card h2 {
    color: var(--main-green);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.contact-card p {
    margin-bottom: 32px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 18px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-family: 'Onest', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-offwhite);
}

.form-input:focus {
    outline: none;
    border-color: var(--main-green);
    background: white;
    box-shadow: 0 0 0 4px rgba(60, 86, 46, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 140px;
}


/* ── Clients Marquee ────────────────────────── */
.clients-section {
    padding: 80px 0;
    background: white;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    /* No overflow:hidden here — chips would get clipped on hover */
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 12px 0; /* extra breathing room so hover lift isn't clipped */
}

/* Fade edges */
.marquee-fade {
    position: absolute;
    top: 0;
    height: 100%;
    width: 120px;
    z-index: 5;
    pointer-events: none;
}

.marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: marquee-scroll 70s linear infinite; /* slowed down */
}

.marquee-track:hover {
    animation-play-state: paused;
}

.client-chip {
    flex-shrink: 0;
    padding: 14px 32px;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    font-family: 'Onest', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: white;
    white-space: nowrap;
    transition: var(--transition);
    cursor: default;
    letter-spacing: 0.01em;
}

.client-chip:hover {
    border-color: var(--main-green);
    color: white;
    background: var(--main-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animations Triggered by JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive Mobile View ────────────────────────── */
@media (max-width: 992px) {
    .hero { padding-top: 40px; }
    .hero-grid { 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }
    .hero-content { display: contents; }
    .hero-content h1 { order: 2; margin-bottom: 16px; font-size: 1.25rem; z-index: 2; position: relative; align-self: flex-start; text-align: left; width: calc(100% - 12px); margin-left: 12px; line-height: 1.3; white-space: normal;}
    .hero-content p { order: 3; margin-bottom: 24px; max-width: 100%; z-index: 2; position: relative; font-size: 0.85rem; align-self: flex-start; text-align: left; width: calc(100% - 12px); margin-left: 12px; }
    .hero-content > a.btn { order: 3; z-index: 2; position: relative; align-self: flex-start; padding: 10px 20px; font-size: 0.85rem; margin-left: 12px; }
    
    .hero-image-single { 
        order: 4; 
        margin-top: -10px; 
        margin-bottom: 0; 
        z-index: 1;
        position: relative;
    }
    .features-grid { 
        order: 5;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin-top: -50px; /* Overlay on bottom of image */
        z-index: 5;
        position: relative;
    }
    .feature-pill { 
        width: 31%; 
        padding: 12px 6px; 
        flex-direction: column; 
        justify-content: center; 
        text-align: center; 
        gap: 8px;
        border-radius: 16px; /* Rounded rectangle instead of full pill */
    }
    .feature-pill span { font-size: 0.75rem; line-height: 1.2; white-space: normal; }
    .feature-pill img { width: 36px; height: 36px; }
    
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    
    .about-block { overflow: hidden; }
    .about-grid { grid-template-columns: 1fr; padding: 50px 20px 0; text-align: center; gap: 20px;}
    .about-content p { margin: 0 auto 30px; }
    .about-images { height: auto; display: flex; justify-content: center; align-items: flex-end; margin-top: 20px; }
    .truck-img { position: relative; right: auto; bottom: auto; width: 120%; max-width: 450px; margin-bottom: -10px; }
    .veg-box-img { display: none; }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-grid { grid-template-columns: 1fr; gap: 40px; }
    .why-us-img { height: 350px; }
    .why-card { margin-left: 0 !important; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px;}
    .contact-card { padding: 30px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-right { gap: 16px; }
    .btn { padding: 12px 24px; font-size: 0.95rem; }
    .hero-content h1 { font-size: 1.45rem; line-height: 1.3;}
    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .gallery-item { height: 250px; }
    .gallery-grid .gallery-item:nth-of-type(n+4) { display: none; }
    h2 { font-size: 2rem !important; }
    .filter-tabs { flex-wrap: wrap; justify-content: center; }
    .why-us-img { height: 250px; }
    .marquee-fade { width: 40px; }
}

/* ── Catalogue Page Styles ────────────────────────── */
.catalogue-main {
    padding-top: 10px;
    padding-bottom: 60px;
    min-height: calc(100vh - 400px);
}

.detail-main {
    padding-top: 10px;
    padding-bottom: 60px;
    min-height: calc(100vh - 400px);
}

.catalogue-banner {
    background: linear-gradient(135deg, #2a3d1a 0%, #192412 55%, #111a0c 100%);
    border-radius: var(--radius-lg);
    margin: 24px auto 40px auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 300px;
    position: relative;
    overflow: hidden;
    color: white;
}

.catalogue-banner-bg {
    display: none;
}

.catalogue-banner-content {
    flex: 1;
    z-index: 2;
    width: 100%;
    padding: 40px 50% 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalogue-banner-content h1 {
    font-size: 2.2rem;
    color: white !important;
    margin-bottom: 28px;
    line-height: 1.2;
}

.catalogue-banner-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0;
    max-width: 90%;
}

.catalogue-banner-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    /* More green area — fade starts earlier, same smooth feather */
    -webkit-mask-image: linear-gradient(to left,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,0.95) 25%,
        rgba(0,0,0,0.82) 35%,
        rgba(0,0,0,0.62) 45%,
        rgba(0,0,0,0.38) 55%,
        rgba(0,0,0,0.18) 65%,
        rgba(0,0,0,0.05) 75%,
        rgba(0,0,0,0) 85%
    );
    mask-image: linear-gradient(to left,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,0.95) 25%,
        rgba(0,0,0,0.82) 35%,
        rgba(0,0,0,0.62) 45%,
        rgba(0,0,0,0.38) 55%,
        rgba(0,0,0,0.18) 65%,
        rgba(0,0,0,0.05) 75%,
        rgba(0,0,0,0) 85%
    );
}

.catalogue-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalogue-header {
    margin-bottom: 24px;
}

.catalogue-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.catalogue-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .catalogue-toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.custom-select, .custom-input {
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: 'Onest', sans-serif;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.custom-select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.custom-select:focus, .custom-input:focus {
    border-color: var(--main-green);
}

.search-wrap {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .search-wrap {
        width: 250px;
    }
}

.search-wrap input {
    width: 100%;
    padding-left: 40px;
}

.search-wrap i, .search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-card {
    background: linear-gradient(to right, #111a0c 0%, #192412 45%, #2a3d1a 100%);
    border-radius: var(--radius-lg);
    border: none;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    height: 280px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    /* More green area — fade starts earlier, same smooth feather */
    -webkit-mask-image: linear-gradient(to right,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,0.95) 25%,
        rgba(0,0,0,0.82) 35%,
        rgba(0,0,0,0.62) 45%,
        rgba(0,0,0,0.38) 55%,
        rgba(0,0,0,0.18) 65%,
        rgba(0,0,0,0.05) 75%,
        rgba(0,0,0,0) 85%
    );
    mask-image: linear-gradient(to right,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,0.95) 25%,
        rgba(0,0,0,0.82) 35%,
        rgba(0,0,0,0.62) 45%,
        rgba(0,0,0,0.38) 55%,
        rgba(0,0,0,0.18) 65%,
        rgba(0,0,0,0.05) 75%,
        rgba(0,0,0,0) 85%
    );
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-yellow { background: var(--accent-yellow); color: #856404; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #dcfce7; color: #166534; }

.product-card-body {
    padding: 30px 40px 30px 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    flex: 1;
    width: 100%;
    z-index: 2;
    position: relative;
}

.product-card-body h3 {
    font-size: 2.2rem; /* bigger title */
    margin-bottom: 12px;
    color: white;
    line-height: 1.1;
}

.product-card-body p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px; /* Reduced gap */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-body .btn-outline {
    margin-top: 0; /* Remove auto to sit closer to text */
    align-self: flex-end; /* right align button */
    color: white;
    border-color: rgba(255,255,255,0.4);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    width: auto;
}

.product-card-body .btn-outline:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border-color: var(--accent-yellow);
}

/* Mobile Responsiveness for Horizontal Cards */
@media (max-width: 768px) {
    .product-grid {
        gap: 16px;
    }
    .product-card {
        height: 160px;
        border-radius: var(--radius-md);
    }
    .product-card-img {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 1;
        -webkit-mask-image: linear-gradient(to right,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,1) 15%,
            rgba(0,0,0,0.95) 25%,
            rgba(0,0,0,0.82) 35%,
            rgba(0,0,0,0.62) 45%,
            rgba(0,0,0,0.38) 55%,
            rgba(0,0,0,0.18) 65%,
            rgba(0,0,0,0.05) 75%,
            rgba(0,0,0,0) 85%
        );
        mask-image: linear-gradient(to right,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,1) 15%,
            rgba(0,0,0,0.95) 25%,
            rgba(0,0,0,0.82) 35%,
            rgba(0,0,0,0.62) 45%,
            rgba(0,0,0,0.38) 55%,
            rgba(0,0,0,0.18) 65%,
            rgba(0,0,0,0.05) 75%,
            rgba(0,0,0,0) 85%
        );
    }
    .product-card-body {
        padding: 16px 20px 16px 45%;
        position: relative;
        z-index: 2;
        width: 100%;
    }
    .product-card-body h3 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }
    .product-card-body p {
        font-size: 0.65rem;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }
    .product-card-body .btn-outline {
        padding: 4px 16px;
        font-size: 0.75rem;
    }

    /* Make top banner match product cards on mobile */
    .catalogue-banner {
        flex-direction: row;
        height: 160px;
        padding: 0;
        margin-bottom: 24px;
        align-items: stretch;
        border-radius: var(--radius-md);
    }
    .catalogue-banner-bg {
        display: none;
    }
    .catalogue-banner-content {
        flex: 1;
        width: 100%;
        position: relative;
        z-index: 2;
        padding: 16px 40% 16px 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .catalogue-banner-content h1 {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }
    .catalogue-banner-content p {
        font-size: 0.75rem;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .catalogue-banner-content .btn-orange {
        padding: 4px 16px !important;
        font-size: 0.75rem !important;
        align-self: flex-start;
        border-radius: 50px;
    }
    .catalogue-banner-img {
        margin-top: 0;
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 1;
        justify-content: flex-end;
        -webkit-mask-image: linear-gradient(to left,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,1) 15%,
            rgba(0,0,0,0.95) 25%,
            rgba(0,0,0,0.82) 35%,
            rgba(0,0,0,0.62) 45%,
            rgba(0,0,0,0.38) 55%,
            rgba(0,0,0,0.18) 65%,
            rgba(0,0,0,0.05) 75%,
            rgba(0,0,0,0) 85%
        );
        mask-image: linear-gradient(to left,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,1) 15%,
            rgba(0,0,0,0.95) 25%,
            rgba(0,0,0,0.82) 35%,
            rgba(0,0,0,0.62) 45%,
            rgba(0,0,0,0.38) 55%,
            rgba(0,0,0,0.18) 65%,
            rgba(0,0,0,0.05) 75%,
            rgba(0,0,0,0) 85%
        );
    }
    .catalogue-banner-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: none;
        transform: none !important;
        box-shadow: none;
        border-radius: 0;
    }
}

.btn-outline {
    margin-top: auto;
    width: 100%;
    background: transparent;
    border: 1.5px solid var(--main-green);
    color: var(--main-green);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--main-green);
    color: white;
}

.pagination-bar {
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pagination-info strong {
    color: var(--text-dark);
}

.pagination-controls {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.page-btn {
    padding: 8px 16px;
    background: white;
    color: var(--text-muted);
    border: none;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.page-btn:last-child {
    border-right: none;
}

.page-btn:hover {
    background: var(--bg-offwhite);
    color: var(--main-green);
}

.page-btn.active {
    background: var(--main-green);
    color: white;
}

/* ── Product Detail Page Styles ────────────────────────── */
.detail-main {
    padding-top: 10px;
    padding-bottom: 60px;
    min-height: calc(100vh - 400px);
}

.detail-hero {
    background-color: var(--dark-green);
    border-radius: var(--radius-lg);
    padding: 0;
    margin: 0 auto 60px auto;
    width: calc(100% - 40px);
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .detail-hero {
        flex-direction: row;
        align-items: stretch;
    }
}

.detail-hero-content {
    padding: 40px;
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .detail-hero-content { padding: 60px; }
}

.detail-hero-content h1 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.detail-hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.6;
}

.detail-hero-img {
    flex: 1;
    background: var(--main-green);
    position: relative;
    min-height: 300px;
}

.detail-hero-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subcat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .subcat-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
}

.subcat-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.subcat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--main-green);
}

.subcat-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-offwhite);
}

.subcat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.subcat-card:hover .subcat-img img {
    transform: scale(1.05);
}

.subcat-info {
    padding: 20px;
}

.subcat-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.subcat-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.table-section {
    margin-bottom: 60px;
}

.table-section h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.table-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .table-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.table-wrapper {
    background: white;
    border-radius: 8px; /* Slightly smaller radius for table aesthetic */
    overflow: hidden; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.table-header {
    background: var(--dark-green);
    color: white;
    padding: 16px 24px;
}

.table-header h3 {
    color: white;
    font-size: 1.25rem;
    margin: 0;
    font-weight: 400; /* Matching screenshot */
}

.table-container {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.product-table th, .product-table td {
    padding: 12px 24px;
    text-align: left;
    font-size: 0.85rem;
}

.product-table th {
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.product-table tr:nth-child(even) {
    background-color: white;
}

.product-table tr:nth-child(odd) {
    background-color: #dcfce7; /* Light green alternating background */
}

.product-table td {
    color: var(--text-muted);
}

.product-table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

/* ── Sidebar Layout for Detail Page ────────────────────────── */
.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

@media (min-width: 992px) {
    .detail-layout {
        flex-direction: row;
        gap: 40px;
    }
}

.detail-sidebar {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .detail-sidebar {
        width: 260px;
        position: sticky;
        top: 130px; /* stick below navbar */
        align-self: flex-start;
    }
}

.filter-menu {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.filter-menu h3 {
    padding: 0 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.filter-btn {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    margin-bottom: 4px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.filter-btn:last-child {
    margin-bottom: 0;
}

.filter-btn:hover {
    background: var(--bg-offwhite);
    color: var(--main-green);
}

.filter-btn.active {
    background: var(--dark-green);
    color: white;
    font-weight: 600;
}

.filter-btn.active:hover {
    background: var(--dark-green);
    color: white;
}


.detail-content {
    flex: 1;
    min-width: 0;
}

.modern-search {
    position: relative;
    margin-bottom: 24px;
}

.modern-search i, .modern-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.modern-search input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.modern-search input:focus {
    outline: none;
    border-color: var(--main-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.hidden-row {
    display: none !important;
}
