/* Product comment form + success — modern blue / slate UI */

.pc-page {
    --pc-bg: #f1f5f9;
    --pc-card: #ffffff;
    --pc-text: #0f172a;
    --pc-muted: #64748b;
    --pc-line: rgba(148, 163, 184, 0.35);
    --pc-blue: #3b82f6;
    direction: rtl;
    text-align: right;
    font-family: iransans, yekan, Tahoma, sans-serif;
    color: var(--pc-text);
    padding: 16px 0 48px;
    background:
        radial-gradient(ellipse 65% 40% at 100% 0%, rgba(59, 130, 246, 0.1), transparent 55%),
        radial-gradient(ellipse 50% 35% at 0% 12%, rgba(99, 102, 241, 0.08), transparent 50%),
        var(--pc-bg);
}

.pc-page a { text-decoration: none !important; }

.pc-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--pc-muted);
}

.pc-crumb a {
    color: #1d4ed8 !important;
    font-weight: 600;
}

.pc-crumb a:hover { color: #2563eb !important; }

.pc-crumb-sep { opacity: 0.4; }

.pc-crumb-current {
    margin: 0;
    display: inline;
    font-family: yekan, iransans;
    font-size: 15px;
    font-weight: 700;
    color: var(--pc-text);
}

.pc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
    gap: 16px;
    align-items: start;
}

.pc-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid var(--pc-line);
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(59, 130, 246, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 70% at 100% 100%, rgba(99, 102, 241, 0.08), transparent 50%),
        var(--pc-card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.pc-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(99, 102, 241, 0.14));
    color: #2563eb;
    font-size: 18px;
}

.pc-hero-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--pc-muted);
}

.pc-hero-title {
    margin: 0;
    font-family: yekan, iransans;
    font-size: clamp(17px, 2.6vw, 21px);
    font-weight: 700;
    line-height: 1.5;
}

.pc-panel {
    padding: 22px;
    border-radius: 20px;
    background: var(--pc-card);
    border: 1px solid var(--pc-line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.pc-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-family: yekan, iransans;
    font-size: 16px;
    font-weight: 700;
}

.pc-panel-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    font-size: 14px;
}

.pc-panel-desc {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--pc-muted);
}

.pc-field {
    margin-bottom: 16px;
}

.pc-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.pc-label .req {
    color: #dc2626;
    font-weight: 600;
    font-size: 12px;
}

.pc-input,
.pc-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--pc-line);
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-family: yekan, iransans, Tahoma, sans-serif;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    direction: rtl;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pc-input {
    min-height: 46px;
}

.pc-textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.9;
}

.pc-input:focus,
.pc-textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.pc-input::placeholder,
.pc-textarea::placeholder {
    color: #94a3b8;
}

.pc-error {
    display: none;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.7;
}

.pc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: yekan, iransans;
    font-size: 14px;
    font-weight: 700;
    transition: filter .15s ease, background .15s ease, transform .12s ease;
}

.pc-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.pc-btn-primary:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

.pc-btn-ghost {
    color: #1d4ed8 !important;
    background: #fff;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.pc-btn-ghost:hover {
    background: #eff6ff;
}

.pc-side {
    display: grid;
    gap: 12px;
}

.pc-product {
    padding: 16px;
    border-radius: 20px;
    background: var(--pc-card);
    border: 1px solid var(--pc-line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.pc-product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--pc-line);
    overflow: hidden;
}

.pc-product-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pc-product-thumb .pc-no-pic {
    color: #94a3b8;
    font-size: 28px;
}

.pc-product-name {
    margin: 0 0 10px;
    font-family: yekan, iransans;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--pc-text);
}

.pc-product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8 !important;
}

.pc-product-link:hover { color: #2563eb !important; }

.pc-tip {
    padding: 14px 16px;
    border-radius: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 13px;
    line-height: 1.9;
    color: #1e3a5f;
}

.pc-tip i {
    color: #2563eb;
    margin-left: 6px;
}

/* Success state */
.pc-success {
    max-width: 640px;
    margin: 0 auto;
    padding: 36px 28px;
    text-align: center;
    border-radius: 24px;
    background: var(--pc-card);
    border: 1px solid var(--pc-line);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.pc-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.12));
    color: #059669;
    font-size: 40px;
    animation: pc-pop .45s ease both;
}

.pc-success-title {
    margin: 0 0 12px;
    font-family: yekan, iransans;
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
}

.pc-success-text {
    margin: 0 auto 22px;
    max-width: 460px;
    font-size: 14px;
    line-height: 2;
    color: #475569;
}

.pc-success-text a {
    color: #1d4ed8 !important;
    font-weight: 700;
}

.pc-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@keyframes pc-pop {
    from {
        opacity: 0;
        transform: scale(0.86) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media screen and (max-width: 900px) {
    .pc-layout {
        grid-template-columns: 1fr;
    }

    .pc-side {
        order: -1;
    }
}

@media screen and (max-width: 576px) {
    .pc-panel,
    .pc-success {
        padding: 16px;
    }

    .pc-actions .pc-btn,
    .pc-success-actions .pc-btn {
        width: 100%;
    }
}
