/* =========================================================
   Item Details Page — two-column layout
   ========================================================= */

/* ── Layout ── */
.item-details-wrapper {
    padding: 30px 0 80px;
}

.item-details-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.item-details-main {
    min-width: 0;
}

.item-details-sidebar {
    position: sticky;
    top: 100px;
    overflow: visible;
}

/* ── Title Section ── */
.details-title-section {
    margin-bottom: 28px;
}

.details-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.3;
}

.details-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 0.88rem;
    color: #6b7280;
}

.details-author i,
.details-sales i {
    margin-right: 6px;
    color: #9ca3af;
}

.details-author a {
    color: #0090E4;
    font-weight: 500;
    text-decoration: none;
}

.details-author a:hover {
    text-decoration: underline;
}

.details-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Sales badges in meta row ── */
.details-meta-sales {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sales-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sales-badge i {
    font-size: 0.75rem;
}

.sales-badge-label {
    opacity: 0.8;
    font-weight: 500;
}

.sales-badge-count {
    font-weight: 700;
}

.sales-badge-text {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.75rem;
}

.sales-badge-envato {
    background: #e8f5e9;
    color: #558b2f;
}

.sales-badge-site {
    background: #e0f2fe;
    color: #0090E4;
}

.sales-badge-total {
    background: #1a1a2e;
    color: #fff;
    font-weight: 700;
}

/* ── Star Ratings (shared) ── */
.details-star-bg {
    display: inline-block;
    position: relative;
    width: 75px;
    height: 14px;
    background: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 15 14%22%3E%3Cpath fill=%22%23e2e5ec%22 d=%22M7.5 0L9.6 4.5L14.5 5.1L11 8.9L12 14L7.5 11.5L3 14L4 8.9L0.5 5.1L5.4 4.5L7.5 0Z%22/%3E%3C/svg%3E') repeat-x left center;
    background-size: 15px 14px;
    vertical-align: middle;
}

.details-star-fill {
    display: block;
    height: 14px;
    background: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 15 14%22%3E%3Cpath fill=%22%23f59e0b%22 d=%22M7.5 0L9.6 4.5L14.5 5.1L11 8.9L12 14L7.5 11.5L3 14L4 8.9L0.5 5.1L5.4 4.5L7.5 0Z%22/%3E%3C/svg%3E') repeat-x left center;
    background-size: 15px 14px;
}

/* ── Tabs ── */
.details-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8ecf1;
    margin-bottom: 30px;
}

.details-tab {
    padding: 14px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.details-tab:hover {
    color: #0090E4;
}

.details-tab.active {
    color: #0090E4;
    border-bottom-color: #0090E4;
}

.details-tab-content {
    display: none;
}

.details-tab-content.active {
    display: block;
}

/* ── Preview ── */
.details-preview {
    margin-bottom: 36px;
}

.details-preview-image {
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.details-preview-image img {
    width: 100%;
    display: block;
}

/* ── Description ── */
.details-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #374151;
}

.details-description h1,
.details-description h2,
.details-description h3 {
    color: #1a1a2e;
    margin-top: 24px;
    margin-bottom: 14px;
    font-weight: 600;
}

.details-description h4,
.details-description h5,
.details-description h6 {
    color: #1a1a2e;
    margin-top: 24px;
    margin-bottom: 14px;
    font-weight: 600;
}

.details-description p {
    margin-bottom: 12px;
}

.details-description div {
    margin-bottom: 12px;
}

.details-description img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 14px 0;
}

.details-description ul,
.details-description ol {
    margin-bottom: 12px;
    padding-left: 22px;
}

.details-description li {
    margin-bottom: 4px;
}

/* ── Sidebar: Pricing Card ── */
.details-pricing-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.details-pricing-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.details-sale-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.details-pricing-price {
    flex: 1;
    text-align: right;
}

.details-old-price {
    display: block;
    font-size: 0.95rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.details-current-price {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ── Option Rows (License/Support) ── */
.details-option-row {
    margin-bottom: 14px;
}

.details-option-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.details-option-label i {
    margin-right: 5px;
    color: #9ca3af;
    width: 14px;
    text-align: center;
}

.details-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.learn-more-btn {
    color: #0090E4;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.learn-more-btn:hover {
    text-decoration: underline;
    color: #0078c1;
}

.details-select {
    width: 100%;
    /* padding: 10px 12px; */
    border: 1.5px solid #e2e5ec;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #1f2937;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 18px;
}

.details-select:focus {
    outline: none;
    border-color: #0090E4;
}

/* niceSelect overrides for details page */
.details-option-row .nice-select {
    width: 100%;
    border-radius: 8px;
    border: 1.5px solid #e2e5ec;
    height: 40px;
    line-height: 40px;
    font-size: 0.88rem;
    padding-left: 12px;
    padding-right: 36px;
}

.details-option-row .nice-select .list {
    width: 100%;
}

/* Fix the green checkmark (✓) position inside the dropdown list.
   niceSelect uses absolute positioning for the selected indicator,
   so the parent must have position: relative to keep it inside. */
.details-option-row .nice-select .option {
    position: relative;
    padding-right: 28px;
}

.details-option-row .nice-select .option.selected {
    font-weight: 600;
}

.details-option-row .nice-select .option.selected::after {
    content: '✓';
    position: absolute;
    right: 10px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    color: #10b981;
    font-weight: 700;
    font-size: 0.85rem;
}

.details-option-row .nice-select:after {
    right: 14px;
}

/* ── Price Preview (Fixed: text overflow & spacing) ── */
.details-price-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #e8ecf1;
    border-bottom: 1px solid #e8ecf1;
    margin: 18px 0 16px;
    word-break: break-word;
    overflow: hidden;
}

.price-preview-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    margin-right: 12px;
}

.price-preview-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a2e;
    text-align: right;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.price-preview-value.highlight {
    color: #0090E4;
}

/* ── Inclusions (Fixed alignment) ── */
.details-inclusions {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.details-inclusions li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 1px;
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.details-inclusions li i {
    color: #10b981;
    font-size: 1rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

/* ── Quantity Row ── */
.details-qty-row {
    margin-bottom: 18px;
}

.details-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #e2e5ec;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    background: #fff;
}

.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 42px;
    border: none;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    user-select: none;
    line-height: 1;
}

.qty-btn:hover {
    background: #e5e7eb;
    color: #1a1a2e;
}

.qty-btn:active {
    background: #d1d5db;
}

.qty-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    border-left: 1.5px solid #e2e5ec;
    border-right: 1.5px solid #e2e5ec;
    height: 42px;
    line-height: 42px;
    background: #fff;
    flex: 0 0 auto;
}

/* ── Add to Cart Button ── */
.details-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: #0090E4;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.details-add-to-cart:hover {
    background: #0078c1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 144, 228, 0.3);
}

.details-add-to-cart:active {
    transform: translateY(0);
}

.details-add-to-cart i {
    font-size: 1.1rem;
}

/* ── Comments Section ── */
.details-rating-overview {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.rating-overview-score {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-score-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    letter-spacing: -0.03em;
}

.rating-stars-display .details-star-bg {
    width: 110px;
    height: 20px;
    background-size: 22px 20px;
}

.rating-stars-display .details-star-fill {
    height: 20px;
    background-size: 22px 20px;
}

.rating-total {
    font-size: 0.88rem;
    color: #6b7280;
    font-weight: 500;
}

.rating-breakdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8ecf1;
}

.rating-source {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    color: #6b7280;
    padding: 5px 14px 5px 10px;
    border-radius: 20px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.rating-source-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Envato — green brand color (#82b440) */
.rating-source:first-child .rating-source-icon {
    background: #e8f5e9;
    color: #689f38;
}

.rating-source:first-child .rating-source-label {
    color: #558b2f;
}

.rating-source:first-child .rating-source-value {
    color: #33691e;
}

/* Our Community — site primary color (#0090E4) */
.rating-source:last-child .rating-source-icon {
    background: #e0f2fe;
    color: #0090E4;
}

.rating-source:last-child .rating-source-label {
    color: #0078c1;
}

.rating-source:last-child .rating-source-value {
    color: #0062a3;
}

.rating-source-label {
    font-weight: 600;
}

.rating-source-value {
    font-weight: 700;
}

.rating-source-count {
    color: #9ca3af;
    font-weight: 500;
}

/* ── Sales Breakdown (below rating) ── */
.sales-breakdown {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed #e8ecf1;
}

.sales-breakdown .rating-source-icon {
    background: #f0fdf4;
    color: #10b981;
}

.sales-breakdown .rating-source:last-child .rating-source-icon {
    background: #eff6ff;
    color: #0090E4;
}

.rating-source-total {
    font-weight: 600;
}

.rating-source-total .rating-source-value {
    font-size: 1rem;
}

.details-comment-form {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    padding: 28px;
}

.details-comment-form h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}

.comment-form-rating {
    margin-bottom: 18px;
}

.comment-form-rating label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.star-rating-input {
    display: flex;
    gap: 4px;
}

.star-rating-input i {
    font-size: 1.5rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating-input i.hover,
.star-rating-input i.active {
    color: #f59e0b;
}

.comment-form-group {
    margin-bottom: 16px;
}

.comment-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.comment-input,
.comment-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e5ec;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1f2937;
    transition: border-color 0.2s;
    font-family: inherit;
}

.comment-input:focus,
.comment-textarea:focus {
    outline: none;
    border-color: #0090E4;
    box-shadow: 0 0 0 3px rgba(0, 144, 228, 0.1);
}

.comment-textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    background: #0090E4;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.comment-submit-btn:hover {
    background: #0078c1;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 144, 228, 0.25);
}

/* ── Guest Comment Notice ── */
.guest-comment-notice {
    text-align: center;
    padding: 40px 28px;
    background: #f9fafb;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
}

.guest-comment-icon {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 12px;
}

.guest-comment-notice h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.guest-comment-notice p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.guest-comment-notice a {
    color: #0090E4;
    font-weight: 600;
    text-decoration: none;
}

.guest-comment-notice a:hover {
    text-decoration: underline;
}

/* ── Empty Comments State ── */
.comments-empty {
    text-align: center;
    padding: 50px 28px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    margin-bottom: 36px;
}

.comments-empty-icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 14px;
}

.comments-empty h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.comments-empty p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* ── Comments Thread ── */

.comments-thread {
    margin-bottom: 36px;
}

/* ── Single Comment ── */
.comment-item {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 18px;
    transition: box-shadow 0.2s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Comment Header: avatar + name/date + rating */
.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Circular avatar with initials */
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-avatar span {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Name and date stacked vertically */
.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
}

.comment-date {
    font-size: 0.78rem;
    color: #9ca3af;
}

.comment-date i {
    margin-right: 4px;
    font-size: 0.75rem;
}

/* Star rating next to header */
.comment-rating {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.comment-rating i {
    font-size: 0.85rem;
    color: #d1d5db;
}

.comment-rating i.active {
    color: #f59e0b;
}

/* Comment Body */
.comment-body {
    margin-bottom: 10px;
}

.comment-body p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* Comment Action Buttons (Like, Reply) */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.comment-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.comment-action-btn i {
    font-size: 0.9rem;
}

.comment-action-btn:hover {
    background: #f3f4f6;
    color: #0090E4;
}

.comment-action-btn .action-count {
    font-weight: 600;
}

/* Liked / Disliked state */
.comment-action-btn.reacted {
    color: #0090E4;
    background: #eff6ff;
}

.comment-action-btn.reacted:hover {
    background: #dbeafe;
}

/* Dislike button — slightly different accent */
.comment-dislike-btn.reacted {
    color: #ef4444;
    background: #fef2f2;
}

.comment-dislike-btn.reacted:hover {
    background: #fee2e2;
}

/* ── Reply Form (shown inline when Reply is clicked) ── */
.reply-form-wrapper {
    margin-top: 14px;
    margin-bottom: 4px;
}

.reply-form {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.reply-avatar span {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.reply-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reply-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e5ec;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #1f2937;
    font-family: inherit;
    resize: vertical;
    min-height: 50px;
    transition: border-color 0.2s;
}

.reply-textarea:focus {
    outline: none;
    border-color: #0090E4;
    box-shadow: 0 0 0 3px rgba(0, 144, 228, 0.1);
}

.reply-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.reply-cancel-btn {
    padding: 7px 16px;
    border: 1.5px solid #e2e5ec;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reply-cancel-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.reply-submit-btn {
    padding: 7px 20px;
    border: none;
    border-radius: 8px;
    background: #0090E4;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reply-submit-btn:hover {
    background: #0078c1;
}

/* ── Replies (nested under a comment) ── */
.comment-replies {
    margin-top: 14px;
    padding-left: 20px;
    border-left: 2px solid #e8ecf1;
}

.reply-item {
    padding: 14px 0 14px 16px;
    margin-bottom: 4px;
}

.reply-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.reply-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 8px;
}

/* Author badge (e.g. "Author" tag on replies from the item author) */
.author-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    background: #0090E4;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

/* ── Support Tab ── */
.support-tab-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card 1: Support Status Banner */
.support-status-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
}

.support-logo-box {
    width: 68px;
    height: 68px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
}

.support-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.support-status-info {
    flex: 1;
    min-width: 0;
}

.support-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.support-status-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.support-badge {
    display: inline-block;
    background-color: #0090E4;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.support-status-desc {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0;
}

.support-status-desc strong {
    color: #1e293b;
    font-weight: 700;
}

/* Card 2: Support Details */
.support-details-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
}

.support-details-header {
    margin-bottom: 24px;
}

.support-card-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.support-card-subheading {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.support-feature-group {
    margin-bottom: 24px;
}

.support-feature-group.hidden {
    display: none;
}


.support-group-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px;
}

.support-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
}

.support-includes-list li i {
    color: #16a34a;
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.support-excludes-list li i {
    color: #dc2626;
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.support-policy-wrapper {
    margin-top: 24px;
    margin-bottom: 18px;
}

.support-policy-text {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0;
}

.support-policy-link {
    color: #0090E4;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.support-policy-link:hover {
    color: #0073b7;
    text-decoration: underline;
}

.support-action-wrapper {
    margin-top: 10px;
}

.support-action-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #6b7280;
    color: #ffffff;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    border: none;
}

.support-action-btn:hover {
    background-color: #4b5563;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.25);
}

.support-action-btn:active {
    transform: translateY(1px);
}

@media (max-width: 576px) {
    .support-status-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }

    .support-details-card {
        padding: 20px 18px;
    }
}


/* ── Related Items ── */
.related-items-section {
    padding: 60px 0 80px;
    background: #f9fafb;
    margin-top: 20px;
}

.related-items-header {
    margin-bottom: 28px;
}

.related-items-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-items-header h2 i {
    color: #0090E4;
}

.related-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-item-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #e8ecf1;
    transition: all 0.25s ease;
}

.related-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.related-item-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.related-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.related-item-card:hover .related-item-img img {
    transform: scale(1.05);
}

.related-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.related-item-info {
    padding: 14px 16px 16px;
}

.related-item-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.related-item-author {
    font-size: 0.78rem;
    color: #6b7280;
}

.related-star-bg {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 11px;
    background: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 15 14%22%3E%3Cpath fill=%22%23e2e5ec%22 d=%22M7.5 0L9.6 4.5L14.5 5.1L11 8.9L12 14L7.5 11.5L3 14L4 8.9L0.5 5.1L5.4 4.5L7.5 0Z%22/%3E%3C/svg%3E') repeat-x left center;
    background-size: 12px 11px;
    vertical-align: middle;
}

.related-star-fill {
    display: block;
    height: 11px;
    background: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 15 14%22%3E%3Cpath fill=%22%23f59e0b%22 d=%22M7.5 0L9.6 4.5L14.5 5.1L11 8.9L12 14L7.5 11.5L3 14L4 8.9L0.5 5.1L5.4 4.5L7.5 0Z%22/%3E%3C/svg%3E') repeat-x left center;
    background-size: 12px 11px;
}

.related-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0090E4;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .item-details-grid {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }

    .related-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .item-details-wrapper {
        padding: 20px 0 60px;
    }

    .item-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .item-details-sidebar {
        position: static;
    }

    .details-title {
        font-size: 1.35rem;
    }

    .details-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .details-tab {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .details-pricing-card {
        padding: 20px 16px;
    }

    .details-current-price {
        font-size: 1.65rem;
    }

    .related-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related-items-grid {
        grid-template-columns: 1fr;
    }

    .rating-overview-score {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ── Description Styling ── */
.details-description img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px auto;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.details-description ul,
.details-description ol {
    margin-bottom: 12px;
    padding-left: 22px;
}

.details-description li {
    margin-bottom: 4px;
}

.details-description blockquote {
    background-color: #f8fafc;
    border-left: 4px solid #0090E4;
    padding: 12px 18px;
    margin: 14px 0;
    color: #4b5563;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.details-description pre {
    background-color: #1e1e2e;
    color: #cdd6f4;
    padding: 10px 14px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    line-height: 1.2;
    margin: 12px 0 20px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.details-description code {
    background-color: #f3f4f6;
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.details-description hr {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.details-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.details-description th,
.details-description td {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
}

.details-description th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.details-description tr:nth-child(even) {
    background-color: #f9fafb;
}

.details-description tr:hover {
    background-color: #f3f4f6;
}

.details-description a {
    color: #0090E4;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.details-description a:hover {
    border-bottom-color: #0090E4;
}

.details-description strong {
    color: #1f2937;
}

.details-description p:empty,
.details-description div:empty {
    display: none;
}
