/* ============================================
   Ekotek v2 — Category Detail Page Styles
   ============================================ */

.category-page {
    padding: 0;
}

/* ---- Hero Shell ---- */
.category-shell {
    margin-top:24px;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    margin-bottom: 48px;
}

/* Hero: 2-column grid */
.category-hero {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 0;
    align-items: stretch;
}

/* Left */
.category-hero-left {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary_text h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.summary_text_body {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 28px;
}

.summary_text_body p {
    margin-bottom: 12px;
}

.summary_text_body p:last-child {
    margin-bottom: 0;
}

.summary_text_body strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Buttons */
.button-container {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.pdf-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pdf-link:hover {
    color: #c73e16;
}

.pdf-link svg {
    flex-shrink: 0;
    color: #c73e16;
}

.cButton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1.5px solid #c73e16;
    background: transparent;
    color: #c73e16;
    cursor: pointer;
}

.cButton:hover {
    background: #c73e16;
    color: #fff;
    transform: translateY(-1px);
}

.cButton svg {
    flex-shrink: 0;
}

/* Right */
.category-hero-right {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-left: 1px solid #eee;
}

.category-media-frame {
    width: 100%;
    max-width: 420px;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #eee;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.video-container .video-thumb {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    border: none;
    display: none;
    border-radius: 16px;
    background: #000;
}

.play-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 60px;
    height: 60px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    z-index: 5;
    animation: pulse 1.6s infinite;
    transition: transform 0.2s ease, opacity 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

@keyframes pulse {
    0% {
    transform: scale(1);
    opacity: 0.9;
    }
    50% {
    transform: scale(1.15);
    opacity: 1;
    }
    100% {
    transform: scale(1);
    opacity: 0.9;
    }
}

.play-icon svg {
    width: 56px;
    height: 56px;
    display: block;
}

.category-cert-strip {
    margin-top: 20px;
    width: 100%;
    max-width: 420px;
}

.category-cert-strip img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* ---- Quick Form (dark) ---- */
.category-quickform {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    padding: 36px 40px;
}

.qformtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.qformsubtitle {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 22px;
}

.qformsend {
    width: 100%;
}

.qform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: stretch;
}

.qform-grid .form-control {
    height: 50px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.9375rem;
    padding: 0 16px;
    width: 100%;
}

.qform-grid .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.qform-grid .form-control:focus {
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.12);
    outline: none;
}

.th-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 32px;
    background: #d94418;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.th-btn:hover {
    background: #b53815;
    transform: translateY(-1px);
}

.onay_box {
    margin-top: 14px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
}

.onay_box a {
    color: #fff;
    text-decoration: underline;
}

.onay_box a:hover {
    color: #fff;
}

.form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* ---- Products Section ---- */
.category-products-section {
    margin-bottom: 48px;
}

.category-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.category-products-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-section-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c73e16;
}

.category-products-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.category-products-badge {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 20px;
}

.category-products-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    white-space: nowrap;
}

/* ---- Products Grid ---- */
.category-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.main-cats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    height: 100%;
}

.product-card-media {
    position: relative;
    background: #fff;
    padding: 16px 16px 0;
    overflow: hidden;
}

.product-card-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #fff;
}

.product-card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-badges {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.product-badge {
    display: inline-block;
    background: #008060;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    line-height: 1;
}

.view-360-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    z-index: 2;
    text-decoration: none;
    line-height: 1;
}

.view-360-btn img {
    width: 44px;
    height: 44px;
    display: block;
}

.view-360-btn:hover {
    transform: scale(1.1);
}

.product-card-body {
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-category-label {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.4;
}

.product-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
}

.product-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.product-card-title a:hover {
    color: var(--color-primary);
}

.product-card-bullets {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card-bullets li {
    position: relative;
    padding-left: 16px;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

.product-card-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #1a1a1a;
}

.product-card-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #008060;
    text-decoration: none;
    margin-top: 8px;
    transition: gap 0.2s;
}

.product-card-more:hover {
    gap: 8px;
    text-decoration: underline;
}

/* ---- Rich Text ---- */
.category-richtext-card {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.category-richtext-card p {
    margin-bottom: 14px;
}

.category-richtext-card p:last-child {
    margin-bottom: 0;
}

.category-richtext-card h2,
.category-richtext-card h3 {
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 16px;
}

.category-richtext-card ul,
.category-richtext-card ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.category-richtext-card ul li,
.category-richtext-card ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.category-richtext-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.category-richtext-card th,
.category-richtext-card td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.category-richtext-card th {
    background: #f1f5f9;
    font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .category-hero {
        grid-template-columns: 1fr;
    }

    .category-hero-right {
        border-left: none;
        border-top: 1px solid #eee;
        padding: 32px;
    }

    .category-hero-left {
        padding: 32px;
    }

    .summary_text h1 {
        font-size: 2.2rem;
    }

    .qform-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .category-quickform {
        padding: 28px;
    }
}

@media (max-width: 640px) {
    .category-hero-left,
    .category-hero-right {
        padding: 24px;
    }

    .summary_text h1 {
        font-size: 1.75rem;
    }

    .button-container {
        flex-direction: column;
    }

    .cButton {
        width: 100%;
        justify-content: center;
    }

    .qform-grid {
        grid-template-columns: 1fr;
    }

    .th-btn {
        width: 100%;
    }

    .category-products-grid {
        grid-template-columns: 1fr;
    }

    .category-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .category-quickform {
        padding: 24px;
    }

    .category-richtext-card {
        padding: 24px;
    }
}

/* ---- Search CTA ---- */
.searchcat-sec {
    background: #eaeaea;
    padding: 32px 0;
    margin-bottom: 0;
}

.searchcat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.searchcat-text {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
}

.searchcat-form-wrap {
    flex: 1;
    max-width: 520px;
}

.searchcat-form {
    display: flex;
    align-items: center;
    position: relative;
}

.searchcat-input {
    width: 100%;
    height: 52px;
    padding: 0 56px 0 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.searchcat-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(241, 86, 44, 0.1);
}

.searchcat-input::placeholder {
    color: #999;
}

.searchcat-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}

.searchcat-button:hover {
    background: #d94418;
}

.searchcat-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .searchcat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .searchcat-form-wrap {
        width: 100%;
        max-width: none;
    }
}

/* ---- Contact / Quote Section ---- */
.category-contact-section {
    margin-bottom: 48px;
}

.category-contact-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.category-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

/* Left side */
.category-contact-left {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-contact-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

.category-contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.category-contact-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 24px;
}

.category-contact-text b {
    color: #fff;
    font-weight: 600;
}

.category-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.category-contact-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.category-contact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.category-contact-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.category-contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.category-contact-action.primary {
    background: #fff;
    color: #1a1a1a;
}

.category-contact-action.primary:hover {
    background: #f0f0f0;
}

.category-contact-action.secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.category-contact-action.secondary:hover {
    background: rgba(255,255,255,0.2);
}

.category-contact-note {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin: 0;
}

/* Right side - Form */
.category-contact-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-contact-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.booking-title-area {
    margin-bottom: 20px;
}

.booking-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.booking-desc {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
}

.booking-desc b {
    color: #1a1a1a;
    font-weight: 600;
}

.booking-form-area .form-group {
    margin-bottom: 14px;
}

.booking-form-area .form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

.booking-form-area .form-control {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #f8f8f8;
    font-size: 0.9375rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-form-area .form-control:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(241, 86, 44, 0.1);
}

.booking-form-area textarea.form-control {
    height: auto;
    padding: 14px 16px;
    resize: vertical;
    min-height: 90px;
}

.booking-form-area .onay_box {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 16px;
}

.booking-form-area .onay_box a {
    color: #c73e16;
    text-decoration: underline;
}

.booking-form-area .form-btn .th-btn {
    width: 100%;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #d94418;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s;
}

.booking-form-area .form-btn .th-btn:hover {
    background: #b53815;
}

.booking-form-area .form-btn .th-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 991px) {
    .category-contact-grid {
        grid-template-columns: 1fr;
    }

    .category-contact-left,
    .category-contact-right {
        padding: 32px;
    }

    .category-contact-title {
        font-size: 1.625rem;
    }
}

@media (max-width: 640px) {
    .category-contact-left,
    .category-contact-right {
        padding: 24px;
    }

    .category-contact-form-card {
        padding: 24px;
    }

    .booking-form-area .form-row {
        grid-template-columns: 1fr;
    }

    .category-contact-actions {
        flex-direction: column;
    }

    .category-contact-action {
        width: 100%;
    }
}

/* ---- FAQ ---- */
.faq-container {
    margin-bottom: 48px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.faq-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.faq-item summary:hover {
    background: #f8f8f8;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '▶';
    font-size: 0.75rem;
    color: var(--color-primary);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] summary::before {
    transform: rotate(90deg);
}

.faq-content {
    padding: 0 20px 16px 48px;
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.6;
}

.faq-content p {
    margin-bottom: 8px;
}

.faq-content p:last-child {
    margin-bottom: 0;
}


/* Admin Edit Button */
.admin-edit-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #E94E1B;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    color: #fff;
}
