@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    box-sizing: border-box;
}

/* ===== PAGE WRAPPER ===== */
.hero_container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 100px 40px 60px;
}

/* ===== BREADCRUMB ===== */
.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.sp-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.sp-breadcrumb a:hover { color: #116e4a; }

.sp-breadcrumb span {
    color: #116e4a;
    font-weight: 600;
}

.sp-breadcrumb-sep {
    color: #ccc;
}

/* ===== MAIN TWO-COLUMN LAYOUT ===== */
.sp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: flex-start;
}

/* ===== LEFT: IMAGE GALLERY ===== */
.sp-gallery {
    position: sticky;
    top: 100px;
}

.sp-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f7f5;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
}

.sp-main-img img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.sp-main-img:hover img {
    transform: scale(1.04);
}

.sp-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.sp-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e8e8e8;
    background: #f5f7f5;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp-thumb.active,
.sp-thumb:hover {
    border-color: #116e4a;
    box-shadow: 0 0 0 3px rgba(17, 110, 74, 0.12);
}

/* ===== RIGHT: PRODUCT DETAILS ===== */
.sp-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(17, 110, 74, 0.08);
    color: #116e4a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 50px;
    width: fit-content;
}

.sp-name {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.sp-short-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.75;
    border-left: 3px solid #116e4a;
    padding-left: 16px;
}

/* ===== KEY SPECS GRID ===== */
.sp-key-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sp-key-spec {
    background: #f8faf9;
    border: 1px solid #e0ede8;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-key-spec-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-key-spec-value {
    font-size: 14px;
    font-weight: 700;
    color: #116e4a;
}

/* ===== ACTION BUTTONS ===== */
.sp-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.sp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #116e4a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    flex: 1;
    justify-content: center;
    min-width: 180px;
}

.sp-btn-primary:hover {
    background: #0d5e3f;
    transform: translateY(-1px);
}

.sp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #fff;
    color: #116e4a;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #116e4a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    flex: 1;
    justify-content: center;
    min-width: 180px;
}

.sp-btn-secondary:hover {
    background: rgba(17, 110, 74, 0.06);
    transform: translateY(-1px);
}

/* ===== CONTACT STRIP ===== */
.sp-contact-strip {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: #f8faf9;
    border: 1px solid #e0ede8;
    border-radius: 14px;
    flex-wrap: wrap;
}

.sp-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 160px;
}

.sp-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(17, 110, 74, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #116e4a;
}

.sp-contact-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-contact-item-text span {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-contact-item-text strong {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 700;
}

/* ===== TABS SECTION ===== */
.sp-tabs-section {
    margin-top: 60px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.sp-tabs {
    display: flex;
    background: #f8faf9;
    border-bottom: 1px solid #e8e8e8;
}

.sp-tab {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.sp-tab.active {
    color: #116e4a;
    border-bottom-color: #116e4a;
    background: #fff;
}

.sp-tab:hover:not(.active) {
    color: #333;
    background: rgba(0,0,0,0.02);
}

.sp-tab-content {
    padding: 40px;
    background: #fff;
}

.sp-tab-content.hidden {
    display: none;
}

/* Description styling */
.sp-description p {
    font-size: 15px;
    color: #444;
    line-height: 1.85;
    margin-bottom: 14px;
}

.sp-description ul {
    padding-left: 20px;
    margin-top: 8px;
}

.sp-description li {
    font-size: 14px;
    color: #555;
    line-height: 2;
    margin-bottom: 4px;
}

.sp-description strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Specs table */
.sp-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.sp-specs-table tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.sp-specs-table tr:last-child {
    border-bottom: none;
}

.sp-specs-table tr:hover {
    background: #f8faf9;
}

.sp-spec-name {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    width: 40%;
    background: #fafafa;
}

.sp-spec-value {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #116e4a;
}

/* ===== RELATED PRODUCTS ===== */
.sp-related-section {
    margin-top: 60px;
}

.sp-related-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

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

.sp-related-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    text-decoration: none;
    background: #fff;
    transition: box-shadow 0.25s, transform 0.2s, border-color 0.2s;
}

.sp-related-card:hover {
    box-shadow: 0 6px 24px rgba(17, 110, 74, 0.1);
    transform: translateY(-2px);
    border-color: rgba(17, 110, 74, 0.3);
}

.sp-related-img {
    width: 72px;
    height: 72px;
    background: #f5f7f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.sp-related-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.sp-related-info {
    flex: 1;
    min-width: 0;
}

.sp-related-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.4;
}

.sp-related-info p {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2; /* standard property for better compatibility */
    overflow: hidden;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 40px;
    background-color: #ffffff;
}

.faq-header {
    margin-bottom: 40px;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #116e4a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-badge img { width: 16px; height: 16px; }

.faq-title {
    display: flex;
    flex-direction: column;
}

.faq-title-light {
    font-size: 32px;
    font-weight: 400;
    color: #666;
}

.faq-title-bold {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin-top: -4px;
}

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

.faq-image-container { position: relative; }

.faq-image {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item.active {
    background: #116e4a;
    border-color: #116e4a;
    box-shadow: 0 8px 24px rgba(17, 110, 74, 0.15);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
}

.faq-question-text {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.3s;
}

.faq-item.active .faq-question-text { color: #fff; }

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #116e4a;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 24px;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    padding: 0 24px 20px;
}

.faq-answer-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

/* Fix: last FAQ may contain HTML lists (<ul><li>) injected as part of the answer.
   Keep styling limited to the ACTIVE FAQ answer only, so other page lists aren't affected. */
.faq-item.active .faq-answer ul,
.faq-item.active .faq-answer li {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 14px !important; /* match .faq-answer-text */
    line-height: 1.8 !important; /* match .faq-answer-text */
}

.faq-item.active .faq-answer ul {
    margin: 10px 0 0 0;
    padding-left: 22px; /* keeps marker + text aligned */
}

.sp-thumbs {
     display: none !important; 
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .sp-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sp-gallery { position: static; }

    .sp-main-img { max-width: 500px; margin: 0 auto; }

    .sp-thumbs { justify-content: center; }

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

    .faq-container { grid-template-columns: 1fr; }

    .faq-image { height: 300px; }
}

@media screen and (max-width: 768px) {
    .hero_container { padding: 90px 20px 40px; }

    .sp-name { font-size: 28px; }

    .sp-key-specs { grid-template-columns: 1fr 1fr; }

    .sp-actions { flex-direction: column; }

    .sp-btn-primary,
    .sp-btn-secondary { min-width: unset; width: 100%; }

    .sp-tabs-section { border-radius: 14px; }

    .sp-tab-content { padding: 24px 20px; }

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

    .faq-section { padding: 40px 20px; }

    .faq-title-bold { font-size: 30px; }
    .faq-title-light { font-size: 22px; }
}

@media screen and (max-width: 480px) {
    .sp-key-specs { grid-template-columns: 1fr; }

    .sp-contact-strip { flex-direction: column; }

    .sp-tabs { overflow-x: auto; }

    .sp-tab { padding: 14px 20px; font-size: 14px; white-space: nowrap; }
}
