@import url(./style.css);

body.product-details-page {
    font-family: sans-serif;
    background: #f5f8fc;
    color: #1f2d3d;
}

.product-details-page .small-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

.product-details-page .single-product {
    margin-top: 86px;
    margin-bottom: 28px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 24px;
    align-items: start;
}

.product-gallery-card,
.product-details-card {
    background: #fff;
    border: 1px solid #e0e8f4;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(2, 28, 55, 0.08);
}

.product-gallery-card {
    padding: 16px;
}

.product-main-figure {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #fcfdff, #f1f5fb);
    border: 1px solid #e0e8f4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 12px;
}

.product-thumb-list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 10px;
}

.product-thumb-btn {
    border: 1px solid #d9e3f2;
    border-radius: 10px;
    background: #f7f9fd;
    padding: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-thumb-btn:hover {
    border-color: #8ab4ea;
    transform: translateY(-1px);
}

.product-thumb-btn.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    background: #eef5ff;
}

.product-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 6px;
}

.product-details-card {
    padding: 22px 22px 20px;
}

.product-breadcrumb {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #4b6786;
}

.product-breadcrumb a {
    color: #0056b3;
}

.product-title {
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    line-height: 1.25;
    color: #0e2f52;
    margin-bottom: 12px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-chip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0056b3;
}

.product-price--sold {
    text-decoration: line-through;
    opacity: 0.65;
}

.product-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d2ddeb;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    color: #4b6786;
    background: #f7faff;
}

.product-chip--sold {
    background: #fff1f1;
    border-color: #f3c4c4;
    color: #8b2f2f;
}

.product-chip--action {
    padding: 10px 14px;
    font-weight: 600;
}

.product-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.product-details-page .action-btn {
    border: 1px solid #0056b3;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.product-details-page .action-btn:hover {
    transform: translateY(-1px);
}

.action-btn-save {
    background: #0056b3;
    color: #fff;
}

.action-btn-save:hover {
    background: #003d80;
    color: #fff;
}

.action-btn-chat {
    background: #ffffff;
    color: #128c7e;
    border-color: #25d366;
}

.action-btn-chat:hover {
    background: #eafff2;
    color: #128c7e;
}

.action-btn-share {
    background: #f3f8ff;
    color: #0e4f96;
    border-color: #b8d1ee;
}

.action-btn-share:hover {
    background: #e4f0ff;
    color: #0b447f;
}

.product-details-page .action-btn:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.details-section {
    margin-top: 18px;
}

.details-section h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #0e2f52;
}

.details-section p {
    color: #34506d;
    line-height: 1.6;
}

.seller-panel {
    margin-top: 14px;
    border: 1px solid #dfe7f3;
    border-radius: 12px;
    background: #f8fbff;
    padding: 12px 14px;
}

.seller-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.seller-row p {
    margin: 0;
    color: #244461;
    font-weight: 600;
}

.seller-name-line.restructure-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
	margin-top: 6px;
	padding: 8px 0px;
	color: var(--main-description-color);
}

.seller-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 86, 179, 0.35);
}

.seller-link:hover {
    color: #007bff;
    border-bottom-color: #007bff;
}

.seller-row i {
    color: #0056b3;
}

.seller-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    font-size: 0.76rem;
    font-weight: 700;
}

.recommendations-section {
    margin-top: 24px;
    padding: 18px;
}

.recommendations-header h3 {
    margin: 0;
    color: #0e2f52;
    font-size: 1.06rem;
}

.recommendations-header p {
    margin-top: 6px;
    color: #4b6786;
    font-size: 0.9rem;
}

.recommendations-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.recommendation-state {
    border: 1px dashed #cedaec;
    border-radius: 12px;
    background: #f7faff;
    color: #4b6786;
    font-size: 0.9rem;
    padding: 14px;
}

.recommendation-card {
    border: 1px solid #dbe6f5;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    border-color: #7ca9df;
    box-shadow: 0 8px 20px rgba(2, 28, 55, 0.1);
}

.recommendation-link {
    display: block;
    text-decoration: none;
}

.recommendation-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #fbfdff, #eef4fb);
    border-bottom: 1px solid #e4edf8;
    overflow: hidden;
}

.recommendation-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8px;
}

.recommendation-content {
    padding: 10px;
}

.recommendation-title {
    color: #163b63;
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0 0 6px;
    min-height: 2.56em;
}

.recommendation-meta {
    margin: 0;
    font-size: 0.78rem;
    color: #4b6786;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.meta-divider {
    color: #8ca8c7;
}

.recommendation-price {
    margin: 7px 0 8px;
    color: #0056b3;
    font-weight: 700;
    font-size: 0.96rem;
}

.recommendation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.recommendation-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d2ddeb;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.72rem;
    color: #36536f;
    background: #f5f9ff;
}

.product-not-found {
    width: min(560px, 100%);
    margin: 110px auto 28px;
    background: #fff;
    border: 1px solid #e0e8f4;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(2, 28, 55, 0.08);
    text-align: center;
    padding: 24px 16px;
}

.not-found-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.not-found-icon {
    margin-bottom: 14px;
}

@media (max-width: 980px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-details-page .single-product {
        margin-top: 74px;
    }
}

@media (max-width: 640px) {
    .product-gallery-card,
    .product-details-card {
        border-radius: 12px;
        padding: 14px;
    }

    .product-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .product-details-page .action-btn {
        justify-content: center;
        width: 100%;
    }

    .recommendations-section {
        padding: 14px;
    }

    .recommendations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .recommendation-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 430px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Report Product Modal Styles
   ========================================================================== */

.report-link {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.report-link:hover {
    color: #dc3545;
    text-decoration-color: #dc3545;
}

.report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 47, 82, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9998;
    animation: fadeIn 0.2s ease-out;
}

.report-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(2, 28, 55, 0.15);
    z-index: 9999;
    animation: modalSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.report-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e0e8f4;
    background: #fcfdff;
}

.report-modal__header h4 {
    margin: 0;
    font-size: 1.15rem;
    color: #0e2f52;
}

.report-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8ca8c7;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.report-modal__close:hover {
    color: #dc3545;
}

.report-modal__body {
    padding: 22px;
}

.report-modal__info {
    font-size: 0.9rem;
    color: #4b6786;
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.report-modal__form-group {
    margin-bottom: 18px;
}

.report-modal__form-group:last-child {
    margin-bottom: 0;
}

.report-modal__form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #163b63;
}

.report-modal__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d2ddeb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1f2d3d;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.report-modal__input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.report-modal__textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.report-modal__footer {
    padding: 18px 22px;
    border-top: 1px solid #e0e8f4;
    background: #fcfdff;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.report-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.report-btn--cancel {
    background: #f1f5fb;
    color: #4b6786;
}

.report-btn--cancel:hover {
    background: #e0e8f4;
    color: #163b63;
}

.report-btn--submit {
    background: #dc3545;
    color: #fff;
    border: 1px solid #c82333;
}

.report-btn--submit:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.report-btn--submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 480px) {
    .report-modal {
        width: 95%;
    }
    .report-modal__header, .report-modal__body, .report-modal__footer {
        padding: 16px;
    }
}
