/* ==========================================
   FLAVOR JEEP AG - Frontend Styles
   Product Widgets, TOC, Article Images
   ========================================== */

/* Product Widget - Single */
.fjag-product-widget {
    position: relative;
    margin: 24px 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.fjag-product-widget:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.fjag-pw-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fjag-pw-inner {
    display: flex;
    align-items: stretch;
}

@media (max-width: 600px) {
    .fjag-pw-inner {
        flex-direction: column;
    }
}

.fjag-pw-image {
    flex: 0 0 200px;
    max-width: 200px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .fjag-pw-image {
        flex: none;
        max-width: 100%;
        height: 200px;
    }
}

.fjag-pw-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.fjag-product-widget:hover .fjag-pw-image img {
    transform: scale(1.05);
}

.fjag-pw-info {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fjag-pw-category {
    display: inline-block;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.fjag-pw-title {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.fjag-pw-title a {
    color: #1f2937;
    text-decoration: none;
}

.fjag-pw-title a:hover {
    color: #2563eb;
}

.fjag-pw-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.fjag-pw-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.fjag-pw-price {
    font-size: 20px;
    font-weight: 800;
    color: #059669;
}

.fjag-pw-price del {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 400;
}

.fjag-pw-price ins {
    text-decoration: none;
}

.fjag-pw-button {
    display: inline-block;
    padding: 8px 20px;
    background: #2563eb;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
    white-space: nowrap;
}

.fjag-pw-button:hover {
    background: #1d4ed8;
    color: #ffffff !important;
}

/* Product Grid */
.fjag-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.fjag-product-grid .fjag-product-widget {
    margin: 0;
}

.fjag-product-grid .fjag-pw-inner {
    flex-direction: column;
}

.fjag-product-grid .fjag-pw-image {
    flex: none;
    max-width: 100%;
    height: 180px;
}

/* Table of Contents */
.fjag-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0;
}

.fjag-toc-title {
    font-size: 16px !important;
    font-weight: 700;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.fjag-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fjag-toc-list li {
    margin: 0;
    padding: 0;
}

.fjag-toc-list li a {
    display: block;
    padding: 6px 0;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.15s;
}

.fjag-toc-list li a:hover {
    color: #2563eb;
}

.fjag-toc-list li:last-child a {
    border-bottom: none;
}

.fjag-toc-sub {
    padding-left: 20px !important;
}

.fjag-toc-sub a {
    font-size: 13px !important;
    color: #6b7280 !important;
}

/* Article Images */
.fjag-article-image {
    margin: 24px auto;
    border-radius: 10px;
    overflow: hidden;
    max-width: 600px;
    text-align: center;
}

.fjag-article-image img,
.fjag-article-image img.fjag-img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.fjag-article-image figcaption {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    padding: 8px 0;
    font-style: italic;
}

/* Video Wrapper */
.fjag-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 24px 0;
    border-radius: 10px;
}

.fjag-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Related Link */
.fjag-related-link {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    font-size: 14px;
}

.fjag-related-link a {
    color: #1d4ed8;
    font-weight: 600;
}
