/* Digital product page — modern UI (scoped to body.site-product) */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');

body.site-product {
    --pp-bg: #f4f6f9;
    --pp-surface: #ffffff;
    --pp-surface-2: #f8fafc;
    --pp-border: #e2e8f0;
    --pp-border-soft: #eef2f6;
    --pp-text: #0f172a;
    --pp-text-secondary: #334155;
    --pp-text-muted: #64748b;
    --pp-accent: #4f46e5;
    --pp-accent-soft: #eef2ff;
    --pp-accent-line: #c7d2fe;
    --pp-cta: #f97316;
    --pp-cta-hover: #ea580c;
    --pp-cta-soft: #fff7ed;
    --pp-cta-line: #fed7aa;
    --pp-success: #059669;
    --pp-sky: #0ea5e9;
    --pp-olive: #84a318;
    --pp-red: #ef4444;
    --pp-radius: 16px;
    --pp-radius-sm: 12px;
    --pp-radius-xs: 8px;
    --pp-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
    --pp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --pp-inner: calc(100vw - 28px);
    --pp-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --pp-duration: 0.22s;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

body.site-product #container {
    max-width: var(--pp-inner);
    width: 100%;
    margin-inline: auto;
    padding: 20px clamp(14px, 3vw, 24px) 28px;
    background: var(--pp-bg);
    border: 1px solid var(--pp-border-soft);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow-sm);
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    grid-template-areas:
        "crumb crumb"
        "sidebar main";
    gap: 20px 24px;
    align-items: start;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

body.site-product #container > .breadcrumb {
    grid-area: crumb;
}

body.site-product #container > #column-right {
    grid-area: sidebar;
    float: none;
    width: auto;
}

body.site-product #container > .content {
    grid-area: main;
    float: none;
    margin: 0 !important;
    overflow: visible;
    min-width: 0;
}

/* ── Breadcrumb ── */
body.site-product .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0;
    padding: 12px 16px 12px 40px;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-sm);
    color: var(--pp-text-muted);
    font-size: 13px;
    line-height: 1.5;
    box-shadow: var(--pp-shadow-sm);
    animation: pp-fade-up 0.45s var(--pp-ease) both;
}

body.site-product .breadcrumb a {
    color: var(--pp-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--pp-duration) var(--pp-ease);
}

body.site-product .breadcrumb a:hover {
    color: var(--pp-cta);
}

body.site-product .breadcrumb span {
    color: var(--pp-text-secondary);
    font-weight: 600;
}

/* ── Sidebar ── */
body.site-product #column-right .box {
    background: transparent;
    border: none;
    padding: 0;
}

body.site-product #column-right .innercontent {
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    padding: 18px 16px;
    margin-bottom: 16px;
    box-shadow: var(--pp-shadow-sm);
    animation: pp-fade-up 0.5s var(--pp-ease) both;
}

body.site-product #column-right .product_title {
    margin-bottom: 14px;
}

body.site-product #column-right .product_title h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--pp-text);
    border: none;
    line-height: 1.4;
}

body.site-product #column-right .product_title h3 span {
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.site-product #column-right .product_title h3 span::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--pp-accent), var(--pp-cta));
    flex-shrink: 0;
}

body.site-product .sidefilelist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.site-product .sidefilelist hr {
    display: none;
}

body.site-product .sidefilelist a {
    text-decoration: none;
    transition: color var(--pp-duration) var(--pp-ease);
}

body.site-product .sidefilelist a[href*="/product/"] img {
    float: right;
    width: 52px;
    height: 52px;
    margin-left: 10px;
    margin-bottom: 4px;
    border-radius: var(--pp-radius-xs);
    border: 1px solid var(--pp-border);
    object-fit: cover;
    transition: transform var(--pp-duration) var(--pp-ease), box-shadow var(--pp-duration) var(--pp-ease);
}

body.site-product .sidefilelist a[href*="/product/"]:hover img {
    transform: translateY(-2px);
    box-shadow: var(--pp-shadow-sm);
}

body.site-product .sidefilelist a[href*="/product/"]:not(:has(img)) {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pp-text);
    line-height: 1.45;
    overflow: hidden;
}

body.site-product .sidefilelist a[href*="/product/"]:not(:has(img)):hover {
    color: var(--pp-accent);
}

body.site-product .sidefilelist span {
    display: block;
    clear: both;
    padding-right: 62px;
    font-size: 12px;
    color: var(--pp-text-muted);
    margin-bottom: 4px;
}

/* ── Product hero card ── */
body.site-product .product-info {
    display: grid;
    grid-template-columns: minmax(220px, 272px) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    padding: 22px;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow);
    animation: pp-fade-up 0.55s var(--pp-ease) both;
}

body.site-product .product-info > .left {
    float: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.site-product .product-info > .left + .right {
    margin: 0;
    float: none;
    background: transparent;
    border: none;
    padding: 0;
}

body.site-product .product-info .image {
    float: none;
    margin: 0;
    padding: 12px;
    background: var(--pp-surface-2);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--pp-duration) var(--pp-ease);
}

body.site-product .product-info .image:hover {
    box-shadow: var(--pp-shadow-sm);
}

body.site-product .product-info .image a.colorbox {
    display: block;
    border-radius: calc(var(--pp-radius-xs) - 2px);
    overflow: hidden;
}

body.site-product .product-info .image img {
    width: 100%;
    max-width: 248px;
    height: auto;
    max-height: 248px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.35s var(--pp-ease);
}

body.site-product .product-info .image:hover img {
    transform: scale(1.02);
}

body.site-product .product-info .image .sale_2,
body.site-product .product-info .image .newTag {
    left: 8px;
    top: 8px;
    margin: 0;
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.15));
}

body.site-product .userdetail {
    float: none;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    clear: none;
    padding: 16px;
    background: var(--pp-surface-2);
    border: 1px solid var(--pp-border);
    border-top: 3px solid var(--pp-accent);
    border-radius: var(--pp-radius-sm);
}

body.site-product .userdetail .seller-trust {
    margin: 0;
    border: none;
    padding: 0;
    background: transparent;
}

body.site-product .userdetail img.userpic {
    max-width: 64px;
    max-height: 64px;
    border-radius: 50%;
    border: 2px solid var(--pp-surface);
    box-shadow: var(--pp-shadow-sm);
}

body.site-product .userdetail h6 {
    font-size: 12px;
    font-weight: 600;
    color: var(--pp-text-muted);
    margin-bottom: 8px;
}

body.site-product .userdetail a.userlink,
body.site-product .userdetail a[href*="/profile/"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pp-accent);
    text-decoration: none;
    margin-bottom: 6px;
    transition: color var(--pp-duration) var(--pp-ease);
}

body.site-product .userdetail a:hover {
    color: var(--pp-cta);
}

body.site-product .userdetail .shopbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 9px 14px;
    border-radius: var(--pp-radius-xs);
    background: var(--pp-accent-soft);
    border: 1px solid var(--pp-accent-line);
    color: var(--pp-accent) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--pp-duration) var(--pp-ease), border-color var(--pp-duration) var(--pp-ease);
}

body.site-product .userdetail .shopbtn:hover {
    background: #e0e7ff;
}

/* ── Title & meta ── */
body.site-product .product-info .product_title h1 {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--pp-text);
    border: none;
    margin-bottom: 4px;
}

body.site-product .product-info .product_title h1 span {
    border: none;
    padding: 0;
}

/* ── Rating summary (under title) ── */
body.site-product .shop-product-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
}

body.site-product .shop-product-rating__link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--pp-text-secondary);
    text-decoration: none;
    transition: color var(--pp-duration) var(--pp-ease);
    cursor: pointer;
}

body.site-product .shop-product-rating__link:hover,
body.site-product .shop-product-rating__link:focus-visible {
    color: var(--pp-accent);
}

body.site-product .shop-product-rating__link--questions {
    font-weight: 600;
    color: var(--pp-text-muted);
}

body.site-product .shop-product-rating__link--empty {
    align-items: flex-start;
    gap: 10px;
}

body.site-product .shop-product-rating__stars {
    position: relative;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    width: 5.6em;
    height: 1em;
    flex-shrink: 0;
}

body.site-product .shop-product-rating__stars-empty,
body.site-product .shop-product-rating__stars-fill {
    position: absolute;
    top: 0;
    right: 0;
    white-space: nowrap;
    overflow: hidden;
}

body.site-product .shop-product-rating__stars-empty {
    color: #e2e8f0;
    width: 100%;
}

body.site-product .shop-product-rating__stars-fill {
    color: #fbbf24;
    width: var(--rating-pct, 0%);
}

body.site-product .shop-product-rating__stars--empty .shop-product-rating__stars-track {
    color: #cbd5e1;
    letter-spacing: 1px;
}

body.site-product .shop-product-rating__score {
    font-size: 16px;
    font-weight: 800;
    color: var(--pp-text);
}

body.site-product .shop-product-rating__count {
    font-size: 13px;
    color: var(--pp-text-muted);
}

body.site-product .shop-product-rating__empty-text {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--pp-text-muted);
    max-width: 520px;
    line-height: 1.6;
}

body.site-product .shop-product-rating__empty-sep {
    opacity: 0.45;
}

body.site-product .shop-product-rating__divider {
    width: 1px;
    height: 18px;
    background: var(--pp-border);
    flex-shrink: 0;
}

/* ── Meta specs ── */
body.site-product .pp-meta-basic {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--pp-border-soft);
    font-size: 13px;
}

body.site-product .pp-meta-basic__row > span {
    display: inline-block;
    min-width: 88px;
    font-weight: 600;
    color: var(--pp-text-muted);
}

body.site-product .pp-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.site-product .pp-meta-item {
    display: grid;
    grid-template-columns: 28px minmax(120px, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
    background: var(--pp-surface-2);
    border: 1px solid var(--pp-border-soft);
    border-radius: var(--pp-radius-xs);
    font-size: 13px;
}

body.site-product .pp-meta-item__icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: currentColor;
    opacity: 0.14;
    position: relative;
}

body.site-product .pp-meta-item__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    background: currentColor;
    opacity: 1;
    mask: center / contain no-repeat;
    -webkit-mask: center / contain no-repeat;
}

body.site-product .pp-meta-item--views { color: var(--pp-success); }
body.site-product .pp-meta-item--views .pp-meta-item__icon::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E");
}

body.site-product .pp-meta-item--dl-format { color: var(--pp-sky); }
body.site-product .pp-meta-item--dl-format .pp-meta-item__icon::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'/%3E%3C/svg%3E");
}

body.site-product .pp-meta-item--main-format { color: var(--pp-red); }
body.site-product .pp-meta-item--main-format .pp-meta-item__icon::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
}

body.site-product .pp-meta-item--size { color: var(--pp-olive); }
body.site-product .pp-meta-item--size .pp-meta-item__icon::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M4 7v10c0 2 1 3 3 3h10c2 0 3-1 3-3V7c0-2-1-3-3-3H7C5 4 4 5 4 7z'/%3E%3Cpath d='M9 12h6'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M4 7v10c0 2 1 3 3 3h10c2 0 3-1 3-3V7c0-2-1-3-3-3H7C5 4 4 5 4 7z'/%3E%3Cpath d='M9 12h6'/%3E%3C/svg%3E");
}

body.site-product .pp-meta-item--pages { color: #8b5cf6; }
body.site-product .pp-meta-item--pages .pp-meta-item__icon::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253'/%3E%3C/svg%3E");
}

body.site-product .pp-meta-item--limit { color: #d97706; }
body.site-product .pp-meta-item--limit .pp-meta-item__icon::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M12 9v2m0 4h.01M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 5c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M12 9v2m0 4h.01M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 5c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z'/%3E%3C/svg%3E");
}

body.site-product .pp-meta-item__label {
    font-weight: 600;
    color: var(--pp-text-muted);
}

body.site-product .pp-meta-item__value {
    font-weight: 600;
    color: var(--pp-text);
}

body.site-product .product-info .description {
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--pp-border-soft);
    color: var(--pp-text-secondary);
    line-height: 1.75;
    font-size: 14px;
}

body.site-product .product-info .description p {
    margin: 0 0 14px;
}

body.site-product .product-info .description a {
    color: var(--pp-accent);
    font-weight: 500;
}

/* ── Price & CTA ── */
body.site-product .product-info .price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0 0 18px;
    padding: 18px 20px;
    border: 1px solid var(--pp-cta-line);
    border-radius: var(--pp-radius-sm);
    background: linear-gradient(135deg, var(--pp-cta-soft) 0%, var(--pp-surface) 55%);
    color: var(--pp-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

body.site-product .product-info .price > br {
    flex-basis: 100%;
    content: "";
    display: block;
    height: 0;
}

body.site-product .product-info .price .icon-shopping-cart:not(.icon-white) {
    display: none;
}

body.site-product .product-info .price .price-old {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

body.site-product .product-info .price .arrow_box {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9 0%, #059669 100%);
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: none;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

body.site-product a.button.dnl,
body.site-product .product-info a.button.dnl {
    float: none;
    order: -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--pp-radius-xs);
    background: linear-gradient(135deg, var(--pp-cta) 0%, var(--pp-cta-hover) 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    transition: transform var(--pp-duration) var(--pp-ease), box-shadow var(--pp-duration) var(--pp-ease), filter var(--pp-duration) var(--pp-ease);
}

body.site-product a.button.dnl:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    filter: brightness(1.03);
    background: linear-gradient(135deg, var(--pp-cta) 0%, var(--pp-cta-hover) 100%);
}

/* ── Actions & social ── */
body.site-product .product-info .cart {
    padding: 0;
}

body.site-product .product-info .cart > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

body.site-product .product-info .cart .button_gray {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--pp-radius-xs);
    border: 1px solid var(--pp-border);
    background: var(--pp-surface);
    color: var(--pp-text-secondary) !important;
    font-size: 13px;
    font-weight: 600;
    text-shadow: none;
    box-shadow: var(--pp-shadow-sm);
    transition: border-color var(--pp-duration) var(--pp-ease), background var(--pp-duration) var(--pp-ease), transform var(--pp-duration) var(--pp-ease);
}

body.site-product .product-info .cart .button_gray:hover {
    border-color: var(--pp-accent-line);
    background: var(--pp-accent-soft);
    transform: translateY(-1px);
}

body.site-product .product-info .cart .social {
    float: none;
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--pp-border-soft);
}

body.site-product .product-info .cart .social > span {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--pp-text-muted);
}

body.site-product .product-info .cart .social a {
    display: inline-block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--pp-border);
    background-color: var(--pp-surface);
    background-image: url(../images/social_icons.png);
    background-repeat: no-repeat;
    background-size: auto;
    opacity: 1;
    transition: transform var(--pp-duration) var(--pp-ease), box-shadow var(--pp-duration) var(--pp-ease);
}

body.site-product .product-info .cart .social a.twitter {
    background-position: -25px 7px;
}

body.site-product .product-info .cart .social a.facebook {
    background-position: -75px 7px;
}

body.site-product .product-info .cart .social a.google {
    background-position: 0 7px;
}

body.site-product .product-info .cart .social a.linkedin {
    background-position: -50px 7px;
}

body.site-product .product-info .cart .social a:hover {
    transform: translateY(-2px);
    box-shadow: var(--pp-shadow-sm);
}

/* ── Tabs ── */
body.site-product .webwidget_tab {
    animation: pp-fade-up 0.6s var(--pp-ease) both;
}

body.site-product .webwidget_tab .modBottom {
    display: none;
}

body.site-product .webwidget_tab .tabContainer {
    height: auto;
    margin-bottom: 0;
}

body.site-product .webwidget_tab .tabHead {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
    margin: 0 0 16px;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-sm);
    box-shadow: var(--pp-shadow-sm);
}

body.site-product .webwidget_tab .tabHead li {
    float: none;
    margin: 0;
    border: none !important;
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--pp-duration) var(--pp-ease), box-shadow var(--pp-duration) var(--pp-ease);
}

body.site-product .webwidget_tab .tabHead li a {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 10px 16px !important;
    color: var(--pp-text-muted) !important;
    text-decoration: none;
    white-space: nowrap;
}

body.site-product .webwidget_tab .tabHead li a::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.75;
    background: currentColor;
    mask: center / contain no-repeat;
    -webkit-mask: center / contain no-repeat;
}

body.site-product .webwidget_tab .tabHead li:nth-child(1) a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
}

body.site-product .webwidget_tab .tabHead li:nth-child(2) a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

body.site-product .webwidget_tab .tabHead li:nth-child(3) a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'/%3E%3C/svg%3E");
}

body.site-product .webwidget_tab .tabHead li:nth-child(4) a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
}

body.site-product .webwidget_tab .tabHead li:nth-child(5) a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z'/%3E%3C/svg%3E");
}

body.site-product .webwidget_tab .tabHead li.currentBtn {
    background: var(--pp-accent-soft);
    border-top: none !important;
    box-shadow: inset 0 0 0 1px var(--pp-accent-line);
}

body.site-product .webwidget_tab .tabHead li.currentBtn a {
    color: var(--pp-accent) !important;
    padding-top: 10px !important;
}

body.site-product .webwidget_tab .tabHead li:not(.currentBtn):hover {
    background: var(--pp-surface-2);
}

body.site-product .webwidget_tab .tabBody {
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    background: var(--pp-surface);
    box-shadow: var(--pp-shadow-sm);
    overflow: hidden;
}

body.site-product .webwidget_tab .tabBody > ul > li.tabCot {
    animation: pp-tab-in 0.28s var(--pp-ease) both;
}

body.site-product .tab-content {
    padding: clamp(18px, 3vw, 28px);
    color: var(--pp-text-secondary);
    line-height: 1.8;
    font-size: 14px;
    overflow: visible !important;
}

body.site-product .tab-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pp-radius-xs);
}

body.site-product .tab-content .center {
    margin: 20px 0;
    text-align: center;
}

body.site-product .tab-content .center a.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 22px;
    border: none;
    border-radius: var(--pp-radius-xs);
    background: linear-gradient(135deg, var(--pp-cta), var(--pp-cta-hover));
    color: #fff !important;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
    transition: transform var(--pp-duration) var(--pp-ease), box-shadow var(--pp-duration) var(--pp-ease);
}

body.site-product .tab-content .center a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

body.site-product .tab-content hr {
    border: none;
    border-top: 1px solid var(--pp-border-soft);
    margin: 24px 0 16px;
}

body.site-product .tab-content .button_gray.keywords {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 4px 6px 4px 0;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--pp-border);
    background: var(--pp-surface-2);
    font-size: 12px;
    font-weight: 600;
    color: var(--pp-text-muted) !important;
    text-shadow: none;
    box-shadow: none;
    transition: background var(--pp-duration) var(--pp-ease), color var(--pp-duration) var(--pp-ease), border-color var(--pp-duration) var(--pp-ease);
}

body.site-product .tab-content .button_gray.keywords:hover {
    background: var(--pp-accent-soft);
    border-color: var(--pp-accent-line);
    color: var(--pp-accent) !important;
}

/* Gallery tab */
body.site-product .sliderpics > div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

body.site-product .sliderpics img {
    width: 100%;
    max-width: none;
    max-height: 220px;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-xs);
    background: var(--pp-surface-2);
    transition: transform var(--pp-duration) var(--pp-ease), box-shadow var(--pp-duration) var(--pp-ease);
}

body.site-product .sliderpics a:hover img {
    transform: translateY(-3px);
    box-shadow: var(--pp-shadow-sm);
}

/* Engagement tab harmony */
body.site-product .shop-pe__tab.is-active,
body.site-product .shop-pe__tab:hover {
    background: var(--pp-accent-soft);
    border-color: var(--pp-accent-line);
    color: var(--pp-accent);
}

body.site-product .shop-pe__btn {
    background: linear-gradient(135deg, var(--pp-cta), var(--pp-cta-hover));
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.28);
}

/* ── Related products ── */
body.site-product .relatedlist {
    margin-top: 28px;
    padding: 22px 0 0;
    border-top: 1px solid var(--pp-border-soft);
}

body.site-product .relatedlist .htitle,
body.site-product .relatedlist h5 {
    font-size: 17px;
    font-weight: 700;
    color: var(--pp-text);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.site-product .relatedlist .htitle::before,
body.site-product .relatedlist h5::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pp-accent), var(--pp-cta));
}

body.site-product .relatedlist hr {
    display: none;
}

body.site-product .relatedlist a[href*="/product/"] img {
    float: right;
    width: 56px;
    height: 56px;
    margin-left: 12px;
    margin-bottom: 0;
    border-radius: var(--pp-radius-xs);
    border: 1px solid var(--pp-border);
    object-fit: cover;
    transition: transform var(--pp-duration) var(--pp-ease);
}

body.site-product .relatedlist a[href*="/product/"]:hover img {
    transform: scale(1.04);
}

body.site-product .relatedlist a[href*="/product/"]:not(:has(img)) {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pp-text);
    text-decoration: none;
    line-height: 1.45;
    overflow: hidden;
}

body.site-product .relatedlist a[href*="/product/"]:not(:has(img)):hover {
    color: var(--pp-accent);
}

body.site-product .relatedlist span {
    display: block;
    clear: both;
    padding-right: 68px;
    font-size: 12px;
    color: var(--pp-text-muted);
    margin-bottom: 14px;
}

/* ── Motion ── */
@keyframes pp-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pp-tab-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.site-product *,
    body.site-product *::before,
    body.site-product *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Responsive ── */
@media (max-width: 991px) {
    body.site-product #container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "crumb"
            "main"
            "sidebar";
        gap: 16px;
    }

    body.site-product .product-info {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    body.site-product .product-info .description p.hlf {
        width: 100%;
    }

    body.site-product .pp-meta-item {
        grid-template-columns: 28px 1fr;
        grid-template-rows: auto auto;
    }

    body.site-product .pp-meta-item__value {
        grid-column: 2;
    }

    body.site-product .shop-product-rating__empty-text {
        flex-direction: column;
    }

    body.site-product .shop-product-rating__divider {
        display: none;
    }

    body.site-product .webwidget_tab .tabHead {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    body.site-product .webwidget_tab .tabHead li {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    body.site-product #container {
        padding: 14px 12px 20px;
        border-radius: var(--pp-radius-sm);
    }

    body.site-product .product-info {
        gap: 18px;
        padding: 14px;
    }

    body.site-product .product-info .price {
        flex-direction: column;
        align-items: stretch;
    }

    body.site-product a.button.dnl,
    body.site-product .product-info a.button.dnl {
        width: 100%;
    }

    body.site-product .sidefilelist span,
    body.site-product .relatedlist span {
        padding-right: 0;
    }
}
