/* ========================================
   Organic Coconut Products Category Page
   ======================================== */

/* --- Scroll Animations --- */
.oc-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.oc-fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero --- */
.oc-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('../images/products/coconut/coconutbg.png') center/cover no-repeat, linear-gradient(135deg, #1A3D0F 0%, #2D5A27 40%, #8B6914 100%);
}

.oc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 30, 5, 0.85) 0%, rgba(20, 50, 12, 0.7) 40%, rgba(100, 75, 10, 0.55) 100%);
    z-index: 1;
}

.oc-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.oc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.oc-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.oc-breadcrumb a:hover {
    color: var(--color-gold);
}

.oc-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.3);
}

.oc-breadcrumb .current {
    color: var(--color-gold);
    font-weight: 500;
}

.oc-hero-text h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 16px;
    line-height: 1.2;
}

.oc-hero-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 650px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.oc-trust-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.oc-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}

.oc-trust-badge svg {
    width: 14px;
    height: 14px;
    color: var(--color-gold);
}

/* --- Overview --- */
.oc-overview {
    padding: 80px 0;
    background: var(--color-white);
}

.oc-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.oc-overview-text h2 {
    margin-bottom: 18px;
}

.oc-overview-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
}

.oc-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.oc-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--color-cream);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.oc-highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.oc-highlight-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary-green), var(--color-primary-green-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.2);
}

.oc-highlight-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-white);
}

.oc-highlight-card h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--color-dark);
}

.oc-highlight-card p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- Filter Bar --- */
.oc-filters {
    position: sticky;
    top: 80px;
    z-index: 999;
    padding: 28px 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.oc-filter-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.oc-search-wrap {
    position: relative;
    flex: 1 1 0;
    min-width: 200px;
}

.oc-search-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-primary-green);
    pointer-events: none;
    opacity: 0.6;
}

.oc-search-input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    background: var(--color-off-white);
    transition: all 0.3s ease;
    color: var(--color-text-primary);
}

.oc-search-input::placeholder {
    color: var(--color-text-light);
    font-weight: 400;
}

.oc-search-input:focus {
    outline: none;
    border-color: var(--color-primary-green);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(45, 80, 22, 0.08);
}

.oc-filter-meta {
    margin-top: 12px;
}

.oc-results-count {
    font-size: 0.85rem;
    color: var(--color-text-light);
    white-space: nowrap;
    font-weight: 500;
    padding: 8px 16px;
    background: var(--color-off-white);
    border-radius: var(--radius-full);
}

/* --- Product Grid --- */
.oc-products {
    padding: 60px 0 80px;
    background: var(--color-off-white);
}

.oc-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- Product Card --- */
.oc-product-card {
    background: var(--color-white);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.oc-product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-green), var(--color-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.oc-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(45, 80, 22, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.oc-product-card:hover::after {
    opacity: 1;
}

.oc-product-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f6f0 0%, #f0ece2 100%);
}

.oc-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.oc-product-card:hover .oc-product-img-wrap img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.oc-organic-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--color-primary-green), var(--color-primary-green-light));
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.3);
}

.oc-organic-badge svg {
    width: 12px;
    height: 12px;
}

.oc-product-body {
    padding: 24px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.oc-product-name {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--color-dark);
    letter-spacing: -0.01em;
}

.oc-product-botanical {
    font-size: 0.8rem;
    color: var(--color-primary-green);
    font-style: italic;
    margin-bottom: 14px;
    font-weight: 500;
}

.oc-product-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oc-product-specs {
    margin-bottom: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
}

.oc-spec-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.8rem;
}

.oc-spec-row svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary-green);
    flex-shrink: 0;
    opacity: 0.7;
}

.oc-spec-label {
    color: var(--color-text-light);
    min-width: 90px;
    font-weight: 500;
}

.oc-spec-value {
    color: var(--color-text-primary);
    font-weight: 600;
}

.oc-product-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.oc-btn-inquire {
    flex: 1;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-primary-green-light) 100%);
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.25);
    position: relative;
    overflow: hidden;
}

.oc-btn-inquire::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.oc-btn-inquire:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.35);
    color: var(--color-white);
}

.oc-btn-inquire:hover::before {
    left: 100%;
}

/* --- Bulk CTA --- */
.oc-bulk-cta {
    padding: 70px 0;
    background: url('../images/products/coconut/coconutbg.png') center/cover no-repeat, linear-gradient(135deg, #C67B2D 0%, #8B6914 100%);
    position: relative;
    overflow: hidden;
}

.oc-bulk-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 42, 6, 0.8) 0%, rgba(45, 80, 22, 0.7) 100%);
    pointer-events: none;
}

.oc-bulk-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.oc-bulk-inner h2 {
    color: var(--color-white);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.oc-bulk-inner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    margin-bottom: 30px;
    line-height: 1.75;
}

.oc-bulk-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.oc-bulk-buttons .btn {
    min-width: 180px;
}

/* --- Quality Assurance --- */
.oc-quality {
    padding: 80px 0;
    background: var(--color-white);
}

.oc-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.oc-quality-card {
    text-align: center;
    padding: 44px 30px;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.oc-quality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-green), var(--color-gold));
    border-radius: 0 0 4px 4px;
}

.oc-quality-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(45, 80, 22, 0.1);
    border-color: transparent;
}

.oc-quality-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-primary-green-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.25);
    transition: transform 0.3s ease;
}

.oc-quality-card:hover .oc-quality-icon {
    transform: scale(1.05);
}

.oc-quality-icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-white);
}

.oc-quality-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.oc-quality-card p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* --- Related Categories --- */
.oc-related {
    padding: 80px 0;
    background: var(--color-cream);
}

.oc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.oc-related-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.oc-related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.oc-related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.oc-related-card:hover img {
    transform: scale(1.1);
}

.oc-related-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 42, 6, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.oc-related-overlay h3 {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.oc-related-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.oc-related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.oc-related-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.oc-related-card:hover .oc-related-link svg {
    transform: translateX(6px);
}

.oc-browse-all {
    text-align: center;
    margin-top: 40px;
}

/* --- FAQ --- */
.oc-faq {
    padding: 80px 0;
    background: var(--color-white);
}

.oc-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.oc-faq-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--color-white);
}

.oc-faq-item:hover {
    border-color: rgba(45, 80, 22, 0.15);
}

.oc-faq-item.active {
    border-color: var(--color-primary-green);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.08);
}

.oc-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-text-primary);
    text-align: left;
    transition: all 0.2s ease;
}

.oc-faq-question:hover {
    color: var(--color-primary-green);
}

.oc-faq-chevron {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--color-text-light);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
}

.oc-faq-item.active .oc-faq-chevron {
    transform: rotate(180deg);
    color: var(--color-primary-green);
}

.oc-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.oc-faq-answer-inner {
    padding: 0 26px 22px;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* --- Footer CTA --- */
.oc-footer-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0F2A06 0%, #1A3D0F 60%, #2D5016 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.oc-footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(197, 164, 78, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.oc-footer-cta h2 {
    color: var(--color-white);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.oc-footer-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

/* --- No Results --- */
.oc-no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.oc-no-results svg {
    width: 48px;
    height: 48px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.oc-no-results h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.oc-no-results p {
    color: var(--color-text-light);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .oc-overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .oc-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .oc-quality-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .oc-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .oc-hero {
        min-height: 420px;
    }

    .oc-hero-content {
        padding: 100px 20px 48px;
    }

    .oc-trust-badges {
        gap: 10px;
    }

    .oc-highlights {
        grid-template-columns: 1fr;
    }

    .oc-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .oc-search-wrap {
        min-width: auto;
    }

    .oc-product-grid {
        grid-template-columns: 1fr;
    }

    .oc-quality-grid {
        grid-template-columns: 1fr;
    }

    .oc-related-grid {
        grid-template-columns: 1fr;
    }

    .oc-related-card {
        height: 220px;
    }

    .oc-overview,
    .oc-quality,
    .oc-related,
    .oc-faq,
    .oc-footer-cta {
        padding: 60px 0;
    }

    .oc-products {
        padding: 40px 0 60px;
    }
}

@media (max-width: 480px) {
    .oc-bulk-buttons {
        flex-direction: column;
        align-items: center;
    }

    .oc-bulk-buttons .btn {
        width: 100%;
    }
}

/* --- Print --- */
@media print {
    .oc-hero,
    .oc-filters,
    .oc-bulk-cta,
    .oc-footer-cta,
    .oc-btn-inquire,
    .whatsapp-float,
    .back-to-top {
        display: none !important;
    }

    .oc-product-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .oc-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body {
        font-size: 11pt;
        color: #000;
    }
}
