/* Category Page Styles - Kinara Timber */

/* Breadcrumb */
.breadcrumb {
    padding: 8rem 0 2rem;
    background: var(--light-cream);
}

.breadcrumb .container {
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--secondary-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-brown);
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--primary-brown);
    font-weight: 500;
}

/* Category Hero */
.category-hero {
    padding: 4rem 0 6rem;
    background: var(--light-cream);
    text-align: center;
}

.category-hero-label {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-brown);
    font-weight: 600;
    margin-bottom: 1rem;
}

.category-hero h1 {
    font-size: 5rem;
    color: var(--primary-brown);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.category-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.9;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-brown);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

/* Products Section */
.products-catalog {
    padding: 0;
}

/* Each Wood Entry */
.wood-entry {
    padding: 8rem 0;
    border-bottom: 1px solid rgba(139, 111, 71, 0.12);
    position: relative;
}

.wood-entry:last-child {
    border-bottom: none;
}

.wood-entry:nth-child(even) {
    background: var(--light-cream);
}

.wood-entry-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
}

.wood-entry:nth-child(even) .wood-entry-inner {
    direction: rtl;
}

.wood-entry:nth-child(even) .wood-entry-inner > * {
    direction: ltr;
}

/* Wood Image */
.wood-image-block {
    position: sticky;
    top: 120px;
}

.wood-image-main {
    width: 100%;
    height: 520px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

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

.wood-image-main:hover img {
    transform: scale(1.05);
}

.wood-image-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.wood-thumb {
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.wood-thumb:hover,
.wood-thumb.active {
    border-color: var(--secondary-brown);
}

.wood-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wood-thumb:hover img {
    transform: scale(1.08);
}

/* Wood Info */
.wood-info-block {
    padding-top: 1rem;
}

.wood-tag {
    display: inline-block;
    background: rgba(139, 111, 71, 0.1);
    color: var(--secondary-brown);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.wood-name {
    font-size: 4rem;
    color: var(--primary-brown);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.wood-alias {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--secondary-brown);
    margin-bottom: 2rem;
}

.wood-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(139, 111, 71, 0.15);
}

/* Spec Table */
.spec-section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-brown);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.spec-table-wrapper {
    margin-bottom: 3rem;
}

.spec-table-label {
    font-size: 1.3rem;
    color: var(--primary-brown);
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-family: 'Cormorant Garamond', serif;
}

.spec-table-label:first-child {
    margin-top: 0;
}

table.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

table.spec-table th {
    background: var(--primary-brown);
    color: var(--white);
    padding: 0.8rem 1.2rem;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

table.spec-table th:first-child {
    border-radius: 6px 0 0 0;
}

table.spec-table th:last-child {
    border-radius: 0 6px 0 0;
    text-align: right;
}

table.spec-table td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(139, 111, 71, 0.1);
    color: var(--text-dark);
    vertical-align: top;
}

table.spec-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary-brown);
    white-space: nowrap;
}

table.spec-table tr:last-child td {
    border-bottom: none;
}

table.spec-table tr:hover td {
    background: rgba(139, 111, 71, 0.04);
}

table.spec-table .spec-sub {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

/* Finishing Badge */
.finishing-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(139, 111, 71, 0.06);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-brown);
    margin-bottom: 2.5rem;
}

.finishing-info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.finishing-info-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.finishing-info-text strong {
    color: var(--primary-brown);
    display: block;
    margin-bottom: 0.2rem;
}

/* Wood CTA */
.wood-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    background: var(--secondary-brown);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-brown);
}

.btn-primary:hover {
    background: var(--primary-brown);
    border-color: var(--primary-brown);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 111, 71, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--primary-brown);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-brown);
}

.btn-outline:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: translateY(-2px);
}

/* Terms Note */
.terms-note {
    padding: 6rem 0;
    background: var(--primary-brown);
    text-align: center;
}

.terms-note .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.terms-note h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.terms-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    max-width: 800px;
}

.terms-list li {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

/* Category CTA */
.category-cta {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
    color: var(--white);
    text-align: center;
}

.category-cta h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.category-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--secondary-brown);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.4s ease;
    border: 2px solid var(--secondary-brown);
    letter-spacing: 1px;
}

.cta-button:hover {
    background: transparent;
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.3);
}

.cta-button-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
}

.cta-button-secondary:hover {
    background: var(--white);
    color: var(--primary-brown);
    border-color: var(--white);
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 7rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    background: var(--secondary-brown);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-brown);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: var(--dark-brown);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-about .logo img {
    height: 100px;
    width: auto;
    display: block;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-cream);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(74, 52, 37, 0.1);
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-brown);
    text-decoration: none;
}

.logo img {
    height: 120px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-brown);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--secondary-brown); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--primary-brown);
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    nav { padding: 0 2rem; }

    .wood-entry-inner {
        padding: 0 2rem;
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .wood-entry:nth-child(even) .wood-entry-inner {
        direction: ltr;
    }

    .wood-image-block {
        position: relative;
        top: auto;
    }

    .category-hero h1 { font-size: 3.5rem; }
    .category-stats { gap: 3rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .logo img { height: 70px; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-links.active { right: 0; }
    .menu-toggle { display: flex; }

    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }

    .category-hero h1 { font-size: 2.5rem; }
    .category-stats { flex-direction: column; gap: 2rem; }
    .wood-name { font-size: 3rem; }
    .wood-image-main { height: 320px; }
    .wood-entry-inner { padding: 0 1.5rem; }
    .wood-entry { padding: 5rem 0; }
    .category-cta h2 { font-size: 2.5rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .footer-content { grid-template-columns: 1fr; }

    table.spec-table th,
    table.spec-table td { padding: 0.7rem 0.8rem; font-size: 0.85rem; }
}
