@font-face {
    font-family: 'iransansweb';
    src: url('/assets/fonts/IRANSansWeb.woff2') format('woff2'), url('/assets/fonts/IRANSansWeb.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body.product-page {
    font-family: 'iransansweb', Tahoma, sans-serif;
    background: var(--theme-bg, #f4f7fb);
    color: #334155;
}

.product-header {
    background: linear-gradient(135deg, var(--theme-primary, #2563eb) 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.25);
}

.product-back-link { color: #fff !important; }
.product-shop-logo { width: 42px; height: 42px; object-fit: cover; border: 2px solid rgba(255,255,255,.6); }

.product-breadcrumb { background: transparent; }
.product-breadcrumb a { color: var(--theme-primary, #2563eb); text-decoration: none; }

.product-gallery-card,
.product-info-card,
.product-bigdesc-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
    position: relative;
}

.product-ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(239, 68, 68, .35);
}

.product-main-swiper {
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
}

.product-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    max-height: 480px;
}

.product-main-swiper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-thumbs-swiper .swiper-slide {
    opacity: .55;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: .2s;
    height: 72px;
}

.product-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--theme-primary, #2563eb);
}

.product-thumbs-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.5;
    color: #0f172a;
}

.product-short-desc {
    color: #64748b;
    line-height: 1.9;
    white-space: pre-line;
}

.product-price-block {
    background: linear-gradient(135deg, var(--theme-row1, #eff6ff), #fff);
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid rgba(37, 99, 235, .12);
}

.product-price-before {
    display: block;
    color: #94a3b8;
    font-size: .95rem;
}

.product-price-current {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--theme-primary, #2563eb);
}

.product-status-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #64748b;
}

.product-qty-input {
    width: 90px;
    font-size: 1.1rem;
    font-weight: 700;
}

.product-add-btn {
    border-radius: 12px;
    padding: .85rem 1rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .25);
}

.product-countdown {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.product-countdown span {
    background: #1e293b;
    color: #fff;
    padding: .35rem .55rem;
    border-radius: 8px;
    font-size: .85rem;
    min-width: 2.5rem;
    text-align: center;
}

.product-bigdesc-body {
    line-height: 2;
    color: #475569;
}

.product-bigdesc-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--theme-primary, #2563eb);
    border-right: 4px solid var(--theme-primary, #2563eb);
    padding-right: .75rem;
}

.floating-cart-btn {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1000;
    background: var(--theme-primary, #2563eb);
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(37, 99, 235, .35);
    text-align: center;
    min-width: 72px;
}

.floating-cart-btn:hover { color: #fff; transform: translateY(-2px); }

.btn-outline-theme {
    border-color: rgba(255,255,255,.7);
    color: #fff;
}

.btn-outline-theme:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

@media (max-width: 991.98px) {
    .product-main-swiper .swiper-slide { max-height: 360px; }
}
