/**
 * Casa Țărănească - Product Template Styles
 * Stiluri pentru pagina de produs (single-cpt_services)
 */

/* ============================================================
   Container principal
   ============================================================ */
.cta-product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.cta-product-container {
    width: 100%;
}

/* ============================================================
   Hero: Imagine + Detalii produs
   ============================================================ */
.cta-product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 60px;
}

/* Imagine produs */
.cta-product-image {
    position: sticky;
    top: 100px;
    text-align: center;
    background: #faf8f5;
    border-radius: 12px;
    padding: 30px;
}

.cta-product-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.cta-product-image:hover .cta-product-img {
    transform: scale(1.03);
}

/* Info produs */
.cta-product-info {
    padding-top: 10px;
}

.cta-product-title {
    font-size: 32px;
    font-weight: 700;
    color: #3d2314;
    line-height: 1.3;
    margin: 0 0 12px 0;
    font-family: inherit;
}

.cta-product-weight {
    display: inline-block;
    background: #5a3920;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cta-product-category {
    display: inline-block;
    color: #8b6914;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px dashed #8b6914;
    padding-bottom: 1px;
    margin-bottom: 30px;
    transition: color 0.2s;
}

.cta-product-category:hover {
    color: #5a3920;
    border-bottom-color: #5a3920;
}

/* ============================================================
   Tabs detalii produs
   ============================================================ */
.cta-details-tabs {
    margin-top: 24px;
}

.cta-details-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    border-bottom: 2px solid #e8e0d6;
    padding-bottom: 0;
}

.cta-details-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #8b7b6b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cta-details-tab:hover {
    color: #5a3920;
    background: #faf8f5;
}

.cta-details-tab.active {
    color: #5a3920;
    border-bottom-color: #5a3920;
    font-weight: 600;
}

.cta-details-tab svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.cta-details-tab.active svg {
    opacity: 1;
}

.cta-details-panel {
    display: none;
    padding: 24px 4px;
    animation: ctaFadeIn 0.25s ease;
}

.cta-details-panel.active {
    display: block;
}

.cta-details-panel p {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0;
}

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

/* ============================================================
   Produse similare
   ============================================================ */
.cta-related-section {
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid #e8e0d6;
}

.cta-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #3d2314;
    margin: 0 0 30px 0;
    font-family: inherit;
}

.cta-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cta-related-item {
    text-decoration: none;
    text-align: center;
    padding: 20px 16px;
    border-radius: 10px;
    transition: all 0.25s ease;
    background: #fff;
}

.cta-related-item:hover {
    background: #faf8f5;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(90, 57, 32, 0.08);
}

.cta-related-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 14px;
    max-height: 200px;
    object-fit: contain;
}

.cta-related-name {
    font-size: 14px;
    font-weight: 600;
    color: #3d2314;
    margin: 0 0 6px 0;
    line-height: 1.4;
    font-family: inherit;
}

.cta-related-cat {
    font-size: 12px;
    color: #8b7b6b;
}

/* ============================================================
   Rețetă asociată
   ============================================================ */
.cta-recipe-section {
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid #e8e0d6;
}

.cta-recipe-card {
    display: flex;
    align-items: center;
    gap: 30px;
    text-decoration: none;
    background: #faf8f5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid #e8e0d6;
}

.cta-recipe-card:hover {
    box-shadow: 0 8px 30px rgba(90, 57, 32, 0.1);
    transform: translateY(-2px);
    border-color: #d4c4b0;
}

.cta-recipe-image {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    overflow: hidden;
}

.cta-recipe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cta-recipe-card:hover .cta-recipe-img {
    transform: scale(1.05);
}

.cta-recipe-info {
    padding: 20px;
}

.cta-recipe-name {
    font-size: 22px;
    font-weight: 700;
    color: #3d2314;
    margin: 0 0 10px 0;
    font-family: inherit;
}

.cta-recipe-link-text {
    font-size: 14px;
    color: #8b6914;
    font-weight: 500;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .cta-product-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-product-image {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .cta-product-title {
        font-size: 26px;
    }
}

@media (max-width: 640px) {
    .cta-product-page {
        padding: 20px 16px 40px;
    }

    .cta-details-nav {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }

    .cta-details-tab {
        border-bottom: 1px solid #e8e0d6;
        margin-bottom: 0;
        padding: 12px 16px;
        justify-content: flex-start;
    }

    .cta-details-tab.active {
        background: #faf8f5;
        border-bottom-color: #e8e0d6;
        border-left: 3px solid #5a3920;
    }

    .cta-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .cta-recipe-card {
        flex-direction: column;
    }

    .cta-recipe-image {
        width: 100%;
        height: 180px;
    }

    .cta-product-title {
        font-size: 22px;
    }

    .cta-section-title {
        font-size: 20px;
    }
}
