.at-product-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
}

/* ── Hero Card ── */
.at-product-hero {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    padding: 28px;
    margin-bottom: 30px;
}

.at-product-hero-inner {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 28px;
    align-items: stretch;
}

.at-product-hero-col {
    display: flex;
}

.at-product-hero-col > * {
    width: 100%;
}

/* ── Expert Card ── */
.at-expert-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 28px 18px;
    text-align: center;
    border: 1px solid #e2e8f0;
    height: 100%;
    box-sizing: border-box;
}

.at-expert-card-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f5b901;
    box-shadow: 0 4px 15px rgba(245,185,1,0.25);
}

.at-expert-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.at-expert-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5b901;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
}

.at-expert-card-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1e293b;
}

.at-expert-card-position {
    font-size: 12px;
    color: #f5b901;
    font-weight: 500;
    margin: 0 0 12px;
}

.at-expert-card-phone,
.at-expert-card-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    color: #475569;
    padding: 8px 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    margin: 5px 0;
    transition: all 0.2s;
    direction: ltr;
    min-width: 160px;
    justify-content: center;
}

.at-expert-card-phone:hover,
.at-expert-card-email:hover {
    border-color: #f5b901;
    color: #f5b901;
    box-shadow: 0 2px 8px rgba(245,185,1,0.15);
}

.at-expert-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    padding: 30px 10px;
}

/* ── Chart Card ── */
.at-chart-card {
    background: #fff;
    border-radius: 14px;
    min-height: 200px;
    border: 1px solid #e2e8f0;
    padding: 18px;
    height: 100%;
    box-sizing: border-box;
}

.at-chart-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1e293b;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5b901;
    display: inline-block;
}

.at-chart-wrapper canvas {
    width: 100% !important;
}

.at-chart-wrapper .alborz-cperiod-btn {
    color: #1e293b !important;
}

.at-chart-wrapper .alborz-cperiod-btn:hover {
    color: #1e293b !important;
    background: #f1f5f9 !important;
}

.at-chart-wrapper .alborz-cperiod-btn.active {
    color: #fff !important;
    background: #f5b901 !important;
}

.at-chart-wrapper .alborz-cperiod-btn.active:hover {
    color: #fff !important;
    background: #e5a800 !important;
}

.at-chart-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 10px;
}

/* ── Info Card ── */
.at-info-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    height: 100%;
    box-sizing: border-box;
}

.at-info-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1e293b;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5b901;
}

.at-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.at-info-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.at-info-table tr:last-child {
    border-bottom: none;
}

.at-info-label {
    padding: 8px 4px;
    color: #64748b;
    font-weight: 500;
    width: 45%;
}

.at-info-value {
    padding: 8px 4px;
    color: #1e293b;
    font-weight: 600;
    text-align: left;
    direction: ltr;
}

/* ── Sticky Tabs ── */
.at-tabs-nav {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(226,232,240,0.8);
    margin-bottom: 30px;
    overflow: hidden;
    position: sticky;
    top: 90px;
    z-index: 50;
    transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}

.at-tabs-nav-stuck {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 6px 40px rgba(0,0,0,0.12);
    border-color: rgba(226,232,240,0.5);
}

.at-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent !important;
    font-size: 15px;
    font-weight: 800;
    color: #94a3b8 !important;
    cursor: pointer;
    position: relative;
    font-family: inherit;
}

.at-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #f5b901;
    transition: width 0.3s;
    border-radius: 3px 3px 0 0;
}

.at-tab-active::after {
    width: 60%;
}

.at-tab:hover,
.at-tab:focus,
.at-tab-active {
    color: #94a3b8 !important;
    background: transparent !important;
    transform: none !important;
}

/* ── Sections ── */
.at-section {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 28px;
    margin-bottom: 24px;
    scroll-margin-top: 80px;
}

.at-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1e293b;
    padding-right: 14px;
    border-right: 4px solid #f5b901;
}

.at-section-content {
    font-size: 14px;
    line-height: 2;
    color: #475569;
}

/* ── Related Products ── */
.at-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.at-related-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    transition: all 0.25s;
}

.at-related-card:hover {
    border-color: #f5b901;
    box-shadow: 0 4px 20px rgba(245,185,1,0.15);
    transform: translateY(-2px);
}

.at-related-card a {
    text-decoration: none;
    color: inherit;
}

.at-related-thumb {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #e2e8f0;
}

.at-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.at-related-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1e293b;
}

.at-related-price {
    font-size: 13px;
    font-weight: 700;
    color: #f5b901;
}

/* ── Reviews Table ── */
.at-reviews-table-wrap {
    overflow-x: auto;
}

.at-reviews-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.at-reviews-table thead {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.at-reviews-table th {
    padding: 16px 20px;
    text-align: right;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.at-reviews-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    background: #fff;
}

.at-reviews-table tbody tr:last-child td {
    border-bottom: none;
}

.at-reviews-table tbody tr {
    transition: background 0.2s;
}

.at-reviews-table tbody tr:hover td {
    background: #f8fafc;
}

.at-review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.at-review-author img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 2px solid #f5b901;
    flex-shrink: 0;
}

.at-review-author span {
    font-weight: 600;
    color: #1e293b;
}

.at-review-date {
    color: #94a3b8;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
}

.at-review-text {
    color: #475569;
    line-height: 1.8;
    max-width: 400px;
}

.at-reviews-notice,
.at-reviews-empty {
    text-align: center;
    color: #94a3b8;
    padding: 50px 10px;
    font-size: 14px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px dashed #e2e8f0;
}

/* ── Review Form ── */
.at-review-form-wrap {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    font-family: 'Vazirmatn', 'Yekanbakhsh', 'peyda', 'IRANSans', Tahoma, sans-serif !important;
}

.at-review-form-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
}

.at-review-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.at-review-form .at-review-field-half {
    flex: 1 1 calc(50% - 6px);
    min-width: 200px;
}

.at-review-form .at-review-field-full {
    flex: 1 1 100%;
}

.at-review-form input[type="text"],
.at-review-form input[type="email"],
.at-review-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Vazirmatn', 'Yekanbakhsh', 'peyda', 'IRANSans', Tahoma, sans-serif !important;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
    background: #fff;
}

.at-review-form input:focus,
.at-review-form textarea:focus {
    border-color: #f5b901;
    box-shadow: 0 0 0 4px rgba(245,185,1,0.12);
}

.at-review-form textarea {
    resize: vertical;
    min-height: 120px;
}

.at-review-field-submit {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.at-review-submit {
    background: #f5b901;
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: 'Vazirmatn', 'Yekanbakhsh', 'peyda', 'IRANSans', Tahoma, sans-serif !important;
}

.at-review-submit:hover {
    background: #e5a800;
    transform: translateY(-1px);
}

.at-review-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.at-review-message {
    flex: 1 1 100%;
    margin-top: 4px;
    font-size: 14px;
}

.at-review-success {
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 16px;
}

.at-review-error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .at-product-hero-inner {
        grid-template-columns: 240px 1fr 240px;
        gap: 18px;
    }
    .at-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .at-product-hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .at-expert-card-img {
        width: 120px;
        height: 120px;
    }
    .at-tab {
        font-size: 12px;
        padding: 12px 10px;
    }
    .at-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .at-section {
        padding: 20px 16px;
    }
    .at-chart-wrapper [style*="gap:8"][style*="flex-wrap:"] {
        flex-wrap: nowrap !important;
    }
    .at-chart-wrapper .alborz-cperiod-btn {
        font-size: 11px !important;
        padding: 5px 8px !important;
        white-space: nowrap !important;
    }

    .at-review-form {
        max-width: 100%;
    }
    .at-review-form .at-review-field-half {
        flex: 1 1 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .at-related-grid {
        grid-template-columns: 1fr;
    }
    .at-reviews-table th,
    .at-reviews-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    .at-product-hero {
        padding: 16px;
    }
}

/* ── Category Page ── */
.at-category-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
}

.at-cat-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    padding: 28px;
    margin-bottom: 30px;
}

.at-cat-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f5b901;
    flex-shrink: 0;
}

.at-cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.at-cat-info {
    flex: 1;
}

.at-cat-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #1e293b;
    font-family: 'Vazirmatn', 'IRANSans', 'Yekanbakhsh', Tahoma, sans-serif !important;
}

.at-cat-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.7;
}

.at-cat-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 30px;
}

.at-cat-col {
    display: flex;
}

.at-cat-col > * {
    width: 100%;
}

.at-cat-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 24px 20px;
    border: 1px solid #e2e8f0;
    height: 100%;
    box-sizing: border-box;
}

.at-cat-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1e293b;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5b901;
}

.at-cat-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.at-cat-stats li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

.at-cat-stats li:last-child {
    border-bottom: none;
}

.at-cat-stats li span {
    color: #64748b;
}

.at-cat-stats li strong {
    color: #1e293b;
    font-weight: 700;
}

.at-cat-products {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 28px;
    margin-bottom: 24px;
}

.at-cat-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.at-cat-product-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.25s;
}

.at-cat-product-card:hover {
    border-color: #f5b901;
    box-shadow: 0 4px 20px rgba(245,185,1,0.15);
    transform: translateY(-3px);
}

.at-cat-product-card a {
    text-decoration: none;
    color: inherit;
}

.at-cat-product-thumb {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #e2e8f0;
}

.at-cat-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.at-cat-product-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #1e293b;
}

.at-cat-product-code {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.at-cat-product-price {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #f5b901;
}

@media (max-width: 1024px) {
    .at-cat-grid {
        grid-template-columns: 240px 1fr 240px;
        gap: 18px;
    }
    .at-cat-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .at-cat-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .at-cat-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .at-cat-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .at-cat-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .at-cat-products-grid {
        grid-template-columns: 1fr;
    }
}
