/* ============================================================ */
/* ===== PRODUCT PAGE STYLES ===== */
/* ============================================================ */

.product-page-container {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    background: #f8f9fa;
    min-height: 100vh;
}

.product-page-container .container,
.product-page-container>.container {
    max-width: 90% !important;
    width: 90% !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
}

.product-page {
    direction: rtl;
    padding: 16px 0 40px;
}

@media (min-width: 1200px) {
    .product-page-container .container {
        max-width: 80% !important;
        padding: 0 40px !important;
    }
}

/* ===== Product Image ===== */
.product-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fafafa;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.product-image-wrapper:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(84, 128, 140, 0.08);
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    max-height: 480px;
    object-fit: contain;
    display: block;
    padding: 20px;
    transition: transform 0.4s ease;
}

.product-image-wrapper:hover img {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary-gradient);
    color: white;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(84, 128, 140, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-badge i {
    font-size: 14px;
}

/* ===== Product Info ===== */
.product-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 4px;
}

.product-name-en {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 14px;
    font-weight: 400;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.product-rating .stars {
    color: #f9a825;
    font-size: 16px;
    letter-spacing: 2px;
    direction: rtl;
    display: inline-block;
}

.product-rating .count {
    font-size: 13px;
    color: var(--text-muted);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-bg);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    border: 1px solid rgba(84, 128, 140, 0.08);
}

.chip i {
    font-size: 12px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid rgba(84, 128, 140, 0.1);
}

.stock-badge.in-stock i {
    color: var(--primary);
    font-size: 13px;
}

.stock-badge.out-of-stock {
    background: #fde8e8;
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.stock-badge.out-of-stock i {
    color: #dc3545;
    font-size: 13px;
}

/* ===== Price Box ===== */
.price-box {
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    border: 1px solid #d5e4e8;
    position: relative;
    overflow: hidden;
}

.price-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(84, 128, 140, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
    font-weight: 500;
}

.price-current {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    direction: rtl;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-current .currency {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-features {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid rgba(84, 128, 140, 0.1);
}

.price-features span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-features span i {
    color: var(--primary);
    font-size: 15px;
}

/* ===== Specs ===== */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.spec-item {
    background: #fafafc;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.spec-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.spec-item .label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-item .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.section-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
    font-size: 1.5rem;
}

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 28px 0;
}

/* ===== Feature Details ===== */
.feature-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.feature-detail-item {
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    border-right: 3px solid var(--primary);
    transition: var(--transition);
}

.feature-detail-item:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-sm);
}

.feature-detail-item .title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-detail-item .title i {
    color: var(--primary);
    font-size: 18px;
}

.feature-detail-item .desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.8;
}

/* ===== Tech Specs Table ===== */
.tech-specs {
    margin-top: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tech-specs .row-spec {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.tech-specs .row-spec:last-child {
    border-bottom: none;
}

.tech-specs .row-spec:hover {
    background: var(--primary-bg);
}

.tech-specs .row-spec .label {
    width: 35%;
    padding: 12px 18px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
    background: #fafafc;
    border-left: 1px solid var(--border-light);
}

.tech-specs .row-spec .value {
    width: 65%;
    padding: 12px 18px;
    color: var(--text-body);
    font-size: 13px;
}

/* ===== Expert Review ===== */
.expert-review {
    padding: 10px 0 20px;
}

.expert-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.expert-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 5px;
}

.expert-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #263238;
}

.expert-title-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 96, 106, 0.08);
    color: #3d606a;
    font-size: 22px;
}

.expert-rating-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafb 100%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.rating-score {
    min-width: 95px;
    text-align: center;
    padding-left: 25px;
    border-left: 1px solid #e9ecef;
}

.rating-number {
    display: block;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    color: #263238;
}

.rating-out-of {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: #8a969c;
}

.rating-details {
    flex: 1;
}

.rating-stars {
    direction: rtl;
    font-size: 25px;
    letter-spacing: 3px;
    color: #f5b301;
    line-height: 1;
}

.rating-caption {
    margin-top: 9px;
    font-size: 13px;
    color: #7b858a;
}

.rating-progress {
    height: 5px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 10px;
    background: #e9ecef;
}

.rating-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f5b301;
}

.rating-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    min-height: 90px;
    border-radius: 16px;
    background: rgba(245, 179, 1, 0.08);
    color: #b78300;
}

.rating-badge i {
    margin-bottom: 5px;
    font-size: 18px;
}

.rating-badge strong {
    font-size: 14px;
}

.rating-badge small {
    margin-top: 3px;
    font-size: 10px;
    color: #9b8a5c;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.expert-feature-card {
    padding: 22px;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expert-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 17px;
    margin-bottom: 5px;
    border-bottom: 1px solid #f0f1f2;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
}

.pros-card .feature-icon {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.cons-card .feature-icon {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.feature-label {
    display: block;
    font-size: 10px;
    color: #929da2;
    margin-bottom: 2px;
}

.feature-card-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #263238;
}

.feature-list {
    padding-top: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: 13px;
    color: #566167;
}

.pros-card .feature-item i {
    color: #198754;
}

.cons-card .feature-item i {
    color: #dc3545;
}

.expert-opinion-card {
    overflow: hidden;
    border: 1px solid #e5eaec;
    border-radius: 18px;
    background: #f8fafb;
}

.opinion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #e7ecee;
    background: #fff;
}

.opinion-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(61, 96, 106, 0.1);
    color: #3d606a;
    font-size: 19px;
}

.opinion-header span {
    display: block;
    font-size: 10px;
    color: #8b969b;
    margin-bottom: 2px;
}

.opinion-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #263238;
}

.opinion-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(61, 96, 106, 0.08);
    color: #3d606a;
    font-size: 10px;
    font-weight: 700;
}

.opinion-content {
    position: relative;
    padding: 25px 28px;
}

.opinion-content p {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-right: 10px;
    font-size: 14px;
    line-height: 2.1;
    color: #566167;
}

.quote-icon {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 65px;
    line-height: 1;
    color: rgba(61, 96, 106, 0.07);
}


.intro-section {
    padding: 10px 0 20px;
}

.intro-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.intro-header-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(61, 96, 106, 0.08);
    color: #3d606a;
    font-size: 20px;
}

.intro-eyebrow {
    display: block;
    font-size: 11px;
    color: #8b969b;
    margin-bottom: 3px;
}

.intro-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: #263238;
}

.intro-description-card {
    position: relative;
    overflow: hidden;
    padding: 25px 28px;
    margin-bottom: 28px;
    border: 1px solid #e7ecee;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafb 100%);
}

.intro-description-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #3d606a;
}

.intro-description-icon {
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 60px;
    line-height: 1;
    color: rgba(61, 96, 106, 0.06);
}

.tab-description {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-right: 5px;
    font-size: 14px;
    line-height: 2.2;
    color: #566167;
}

.intro-empty {
    padding: 40px 20px;
    margin-bottom: 28px;
    text-align: center;
    border: 1px dashed #dce3e5;
    border-radius: 18px;
    background: #fafbfc;
}

.intro-empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 18px;
    background: #eef2f3;
    color: #8b989d;
    font-size: 27px;
}

.intro-empty h5 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: #566167;
}

.intro-empty p {
    margin: 0;
    font-size: 12px;
    color: #929da2;
}

/* ===== KEY FEATURES ===== */
.key-features {
    padding: 22px;
    border: 1px solid #e7ecee;
    border-radius: 18px;
    background: #fff;
}

.features-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eef1f2;
}

.features-title-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(245, 179, 1, 0.1);
    color: #d39a00;
    font-size: 19px;
}

.features-header span {
    display: block;
    font-size: 10px;
    color: #929da2;
    margin-bottom: 2px;
}

.features-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #263238;
}

.key-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.key-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #eef1f2;
    border-radius: 14px;
    background: #fafbfc;
    transition: all 0.2s ease;
}

.key-feature-item:hover {
    transform: translateY(-2px);
    border-color: #dce5e7;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.key-feature-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(61, 96, 106, 0.08);
    color: #3d606a;
    font-size: 17px;
}

.key-feature-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 800;
    color: #3f4b50;
}

.key-feature-item span {
    display: block;
    font-size: 10px;
    color: #929da2;
}

@media (max-width: 768px) {
    .key-features-grid {
        grid-template-columns: 1fr;
    }

    .intro-title {
        font-size: 18px;
    }

    .intro-description-card {
        padding: 22px;
    }
}


.product-specifications {
    padding: 10px 0 20px;
}

.specifications-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.specifications-header-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(61, 96, 106, 0.08);
    color: #3d606a;
    font-size: 20px;
}

.specifications-eyebrow {
    display: block;
    font-size: 11px;
    color: #8b969b;
    margin-bottom: 3px;
}

.specifications-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: #263238;
}

.specs-table-wrapper {
    overflow: hidden;
    border: 1px solid #e7ecee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.035);
}

.specs-table {
    overflow: hidden;
}

.specs-row {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-bottom: 1px solid #eef1f2;
    min-height: 58px;
}

.specs-row:last-child {
    border-bottom: none;
}

.specs-label {
    display: table-cell;
    vertical-align: middle;
    width: 30%;
    padding: 14px 20px;
    background: #f8fafb;
    color: #69757a;
    font-size: 13px;
    font-weight: 700;
    border-bottom: inherit;
}

.specs-value {
    display: table-cell;
    vertical-align: middle;
    width: 70%;
    padding: 14px 22px;
    color: #3f4b50;
    font-size: 13px;
    line-height: 1.8;
    border-bottom: inherit;
}

.specs-row:hover .specs-label {
    background: #f3f6f7;
}

.specs-row:hover .specs-value {
    background: #fcfdfd;
}

.extra-specs {
    display: none;
}

.extra-specs .specs-row:last-child {
    border-bottom: 1px solid #eef1f2;
}

.spec-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.status-available {
    background: rgba(25, 135, 84, 0.09);
    color: #198754;
}

.status-unavailable {
    background: rgba(220, 53, 69, 0.09);
    color: #dc3545;
}

.product-code {
    direction: ltr;
    padding: 5px 10px;
    border-radius: 7px;
    background: #f1f4f5;
    color: #526067;
    font-family: monospace;
    font-size: 12px;
}

.unknown-value {
    color: #9aa4a8;
    font-size: 12px;
}

.spec-value-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spec-value-with-icon i {
    color: #3d606a;
    font-size: 16px;
}

.specs-more {
    padding: 18px 20px 20px;
    background: #fff;
}

.show-more-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #54808c 0%, #7ba3ae 100%);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(84, 128, 140, 0.18);
    transition: all 0.25s ease;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3d606a 0%, #54808c 100%);
    box-shadow: 0 8px 25px rgba(84, 128, 140, 0.25);
}

.show-more-btn:active {
    transform: translateY(0);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.btn-content i {
    font-size: 16px;
    transition: transform 0.25s ease;
}

.show-more-btn.active .btn-content i {
    transform: rotate(180deg);
}

.specs-empty-state {
    padding: 50px 20px;
    text-align: center;
    border: 1px dashed #dce3e5;
    border-radius: 18px;
    background: #fafbfc;
}

.specs-empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 18px;
    background: #eef2f3;
    color: #8b989d;
    font-size: 27px;
}

.specs-empty-state h5 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: #566167;
}

.specs-empty-state p {
    margin: 0;
    color: #929da2;
    font-size: 12px;
}

@media (max-width: 768px) {
    .specifications-title {
        font-size: 18px;
    }

    .specs-label {
        width: 38%;
        padding: 12px 14px;
        font-size: 12px;
    }

    .specs-value {
        width: 62%;
        padding: 12px 15px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .specs-label {
        width: 42%;
        padding: 11px 12px;
    }

    .specs-value {
        width: 58%;
        padding: 11px 12px;
    }

    .specs-more {
        padding: 14px;
    }
}