#paw-container { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }
.paw { z-index: 0; pointer-events: none; }
.page-wrapper { position: relative; z-index: 10; background: transparent; }

:root {
    --primary: #4f46e5; --primary-hover: #4338ca; --bg-main: #f8fafc; --bg-card: #ffffff;
    --text-dark: #0f172a; --text-body: #334155; --text-gray: #64748b; --border-soft: #f1f5f9;
    --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.04); --radius-xl: 24px; --transition: all 0.3s ease;
}

body.bg-elegant { background-color: var(--bg-main); color: var(--text-dark); font-family: 'Inter', sans-serif; }

.article-nav { padding: 24px 0; }
.nav-container { max-width: 860px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-gray); text-decoration: none; font-weight: 600; font-size: 15px; transition: var(--transition); background: var(--bg-card); padding: 10px 20px; border-radius: 100px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.03); }
.back-link svg { width: 18px; height: 18px; transition: transform 0.3s; }
.back-link:hover { color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.back-link:hover svg { transform: translateX(-4px); }

.article-container { max-width: 860px; margin: 0 auto; padding-bottom: 60px; }
.article-wrapper { background: var(--bg-card); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.02); }

.article-header { padding: 48px 48px 32px; text-align: center; }
.article-meta { display: inline-block; color: var(--primary); font-size: 14px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; background: rgba(79, 70, 229, 0.1); padding: 6px 16px; border-radius: 100px; }
.article-title { font-size: 3rem; font-weight: 800; color: var(--text-dark); margin: 0; line-height: 1.2; letter-spacing: -1px; }

.article-cover-box { width: 100%; height: 500px; background: #000; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover-blur-bg { position: absolute; inset: -15%; background-size: cover; background-position: center; filter: blur(20px) brightness(0.6); z-index: 1; }
.article-cover-box img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; }

.article-body { padding: 48px 64px 64px; font-size: 1.15rem; line-height: 1.8; color: var(--text-body); }
.article-body p { margin-bottom: 24px; }
.article-body h2 { font-size: 2rem; margin: 48px 0 24px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.5px; }
.article-body h3 { font-size: 1.5rem; margin: 36px 0 16px; font-weight: 700; color: var(--text-dark); }
.article-body ul, .article-body ol { margin-bottom: 24px; padding-left: 24px; }
.article-body li { margin-bottom: 12px; }
.article-body strong { color: var(--text-dark); font-weight: 700; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; transition: 0.2s; }

.article-body blockquote { margin: 40px 0; padding: 24px 32px; font-style: italic; font-size: 1.3rem; color: var(--text-dark); background: var(--bg-main); border-left: 6px solid var(--primary); border-radius: 0 16px 16px 0; }

.article-body img:not(.emb-img):not(.shoppable-photo):not(.shop-panel-img),
.article-body video {
    width: auto; max-width: 100%; height: auto;
    border-radius: var(--radius-xl); margin: 40px auto; display: block;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.zoomable-media { cursor: zoom-in; transition: transform 0.2s ease; }
.zoomable-media:hover { transform: scale(1.01); }

.media-lightbox { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.media-lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-close { position: absolute; top: 24px; right: 32px; background: rgba(255,255,255,0.1); border: none; color: white; font-size: 36px; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: 0.2s; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.lightbox-content img { max-width: 90vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); object-fit: contain; animation: zoomIn 0.3s forwards; }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.article-body .embedded-card { display: flex; align-items: center; gap: 16px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 12px; margin: 20px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.03); text-decoration: none; transition: var(--transition); }
.article-body .embedded-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-color: #cbd5e1; }
.article-body .emb-img { width: 60px; height: 60px; margin: 0; box-shadow: none; object-fit: contain; border-radius: 8px; background: #f8fafc; flex-shrink: 0; }
.emb-icon { width: 50px; height: 50px; border-radius: 12px; background: #eff6ff; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.emb-info { flex-grow: 1; display: flex; flex-direction: column; }
.emb-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; line-height: 1.3; }
.emb-cat-name { font-size: 14px; color: var(--primary); font-weight: 600; }
.emb-price-row { display: flex; align-items: center; gap: 8px; }
.emb-price-normal { font-size: 15px; font-weight: 700; color: var(--primary); }
.emb-price-new { font-size: 15px; font-weight: 800; color: var(--danger); }
.emb-price-old { font-size: 13px; color: var(--text-gray); text-decoration: line-through; }
.emb-btn { background: var(--primary); color: white; padding: 8px 16px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.emb-btn-outline { border: 2px solid var(--primary); color: var(--primary); padding: 6px 14px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }

.article-body .shoppable-wrapper {
    display: flex; flex-direction: column;
    margin: 40px auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.article-body .shoppable-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.shoppable-img-box {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 600px;
    background: #000;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.shoppable-blur-bg {
    position: absolute; inset: -15%;
    background-size: cover; background-position: center;
    filter: blur(25px) brightness(0.6); z-index: 1;
}
.article-body .shoppable-photo {
    position: relative; z-index: 2;
    width: auto; max-width: 100%;
    height: auto; max-height: 600px;
    object-fit: contain;
    margin: 0 !important; box-shadow: none !important; border-radius: 0 !important;
}

.shoppable-product-panel {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 24px;
    background: var(--bg-card);
    text-decoration: none;
    border-top: 1px solid var(--border-soft);
    transition: background 0.2s;
}
.shoppable-product-panel:hover {
    background: #f8fafc;
}

.article-body .shop-panel-img {
    width: 64px; height: 64px;
    border-radius: 12px;
    object-fit: contain;
    background: white; border: 1px solid #e2e8f0;
    margin: 0 !important; box-shadow: none !important; flex-shrink: 0;
}

.shop-panel-info {
    flex-grow: 1; display: flex; flex-direction: column; min-width: 0;
}
.shop-panel-title {
    font-size: 16px; font-weight: 800; color: var(--text-dark);
    margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-panel-price { display: flex; gap: 8px; align-items: center; }

.shop-panel-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: white;
    padding: 10px 20px; border-radius: 100px;
    font-size: 14px; font-weight: 700;
    transition: background 0.2s; flex-shrink: 0;
}
.shoppable-product-panel:hover .shop-panel-btn {
    background: var(--primary-hover);
}
.shop-panel-btn svg { width: 18px; height: 18px; }

.elegant-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; color: var(--text-gray); font-weight: 500; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

.error-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 20px; background: var(--bg-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.error-icon { font-size: 64px; margin-bottom: 24px; }
.error-state h3 { font-size: 24px; color: var(--text-dark); margin: 0 0 12px; font-weight: 800; }
.error-state p { color: var(--text-gray); margin: 0 0 24px; font-size: 16px; }
.btn-primary { background: var(--primary); color: white; padding: 12px 28px; border-radius: 100px; text-decoration: none; font-weight: 600; transition: var(--transition); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3); }

@media (max-width: 768px) {
    .article-header { padding: 32px 24px 24px; }
    .article-title { font-size: 2.2rem; }
    .article-body { padding: 32px 24px; font-size: 1.05rem; }
    .article-cover-box { height: 350px; }
    .lightbox-close { top: 10px; right: 10px; font-size: 28px; width: 40px; height: 40px; }

    .shoppable-product-panel { padding: 16px; flex-wrap: wrap; }
    .shop-panel-btn { width: 100%; justify-content: center; margin-top: 8px; }
}