/* =============================================
   PRODUCT DETAIL PAGE — product.css
   Loaded only on single ecm_product pages
   ============================================= */

/* ── BREADCRUMB ─────────────────────────────── */
.breadcrumb {
    width: 100%;
    margin-bottom: 20px;
}

.breadcrumb p {
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #8BC34A;
}

.breadcrumb a {
    color: #8BC34A;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 6px;
    color: #999;
}

/* ── PRODUCT TOP SECTION ────────────────────── */
.product-top-section {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    align-items: flex-start;
}

/* ── GALLERY ────────────────────────────────── */
.product-gallery {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.main-image-container {
    width: 100%;
    height: 500px;
    background-color: #EBEBEB;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

/* ── PRODUCT INFO ───────────────────────────── */
.product-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-title {
    color: #8BC34A;
    font-family: 'Ubuntu', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: lowercase;
}

/* ── ACTION BUTTONS ─────────────────────────── */
.product-action-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.btn-primary,
.btn-secondary {
    border: none;
    padding: 13px 28px;
    border-radius: 30px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.15s ease;
}

.btn-primary {
    background-color: #A3EA3F;
    color: #000;
}

.btn-secondary {
    background-color: #DDF8A9;
    color: #000;
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-1px);
}

/* ── PRODUCT DESCRIPTION ────────────────────── */
.product-description {
    margin-bottom: 30px;
}

.product-description h3 {
    color: #8BC34A;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-description p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 10px;

    /* Clamp to 4 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    margin-top: 4px;
    color: #8BC34A;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #000;
}

/* ── GALLERY THUMBNAILS ─────────────────────── */
.thumbnail-container {
    display: flex;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    flex-wrap: wrap;
}

.thumb {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s ease, border-color 0.25s ease;
    background-color: #EBEBEB;
}

.thumb.active {
    border-color: #8BC34A;
    transform: scale(1.06);
}

.thumb:hover {
    transform: scale(1.06);
    border-color: #c5f072;
}

/* ── SECTION HEADING ────────────────────────── */
.section-heading {
    color: #8BC34A;
    font-family: 'Ubuntu', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ── BRIEF DESCRIPTION / TABS ───────────────── */
.brief-description-section {
    margin-bottom: 60px;
    scroll-margin-top: 30px; /* smooth scroll offset */
}

.tab-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.tab-btn-detail {
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 600;
    font-size: 14px;
    background-color: #DDF8A9;
    color: #000;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.tab-btn-detail.active,
.tab-btn-detail:hover {
    background-color: #000;
    color: #fff;
}

/* Tab Content */
.tab-content {
    display: none;
    background-color: #F4FCD9;
    padding: 40px;
    border-radius: 22px;
    gap: 40px;
    align-items: center;
    animation: fadeInTab 0.35s ease;
}

.tab-content.active {
    display: flex;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tab-text {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.85;
}

.tab-text p {
    margin-bottom: 14px;
}

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

.tab-image {
    width: 280px;
    height: 240px;
    background-color: #EBEBEB;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── SIMILAR PRODUCTS ───────────────────────── */
.similar-products-section {
    margin-bottom: 80px;
}
