/* Product Page Styles - Professional & Simple Design */

/* Reset and Base Styles */
.product-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Container */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .product-container {
        padding: 0 16px;
    }
}

/* ===== COMPREHENSIVE PRODUCT PAGE RESPONSIVE ===== */

/* Mobile-first responsive design */
@media (max-width: 767px) {
    .product-page {
        font-size: 14px;
    }

    .product-container {
        padding: 0 12px;
    }

    /* Breadcrumb responsive */
    .product-breadcrumb {
        padding: 12px 0;
        margin-bottom: 16px;
    }

    .product-breadcrumb nav {
        font-size: 12px;
        gap: 6px;
        flex-wrap: wrap;
    }

    /* Main layout responsive */
    .product-main {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    /* Product images responsive */
    .product-images-section {
        padding: 16px;
        border-radius: 8px;
    }

    .product-main-image {
        height: 250px;
        margin-bottom: 12px;
    }

    .product-thumbnails {
        gap: 8px;
    }

    .product-thumbnail {
        width: 60px;
        height: 60px;
        border-radius: 6px;
    }

    /* Product info responsive */
    .product-info-section {
        padding: 16px;
        border-radius: 8px;
    }

    .product-title {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .product-meta {
        gap: 12px;
        margin-bottom: 16px;
    }

    .product-meta-item {
        font-size: 12px;
    }

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

    /* Action buttons responsive */
    .product-actions {
        gap: 12px;
        margin-bottom: 20px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }

    /* Seller info responsive */
    .seller-info {
        padding: 16px;
        border-radius: 8px;
    }

    .seller-header {
        margin-bottom: 12px;
    }

    .seller-avatar {
        width: 40px;
        height: 40px;
    }

    .seller-name {
        font-size: 16px;
    }

    .seller-meta {
        font-size: 12px;
    }

    .seller-actions {
        gap: 8px;
    }

    .btn-outline {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }

    /* Product details responsive */
    .product-details-section {
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .product-details h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .product-description {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Product specs responsive */
    .product-specs-section {
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .product-specs h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .spec-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .spec-item {
        padding: 12px;
        border-radius: 6px;
    }

    .spec-label {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .spec-value {
        font-size: 14px;
    }

    /* Related products responsive */
    .related-products-section {
        padding: 16px;
        border-radius: 8px;
    }

    .related-products h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .related-product-card {
        border-radius: 6px;
    }

    .related-product-image {
        height: 120px;
    }

    .related-product-info {
        padding: 12px;
    }

    .related-product-title {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .related-product-price {
        font-size: 14px;
    }

    .related-product-location {
        font-size: 11px;
    }
}

/* Tablet responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-container {
        padding: 0 20px;
    }

    .product-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-main-image {
        height: 350px;
    }

    .product-thumbnail {
        width: 80px;
        height: 80px;
    }

    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop responsive */
@media (min-width: 1024px) {
    .product-main {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .related-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .spec-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== CATEGORY-SPECIFIC RESPONSIVE ===== */
@media (max-width: 767px) {

    /* Construction Equipment */
    .product-category-3 .spec-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-category-3 .spec-card {
        padding: 12px;
    }

    .product-category-3 .spec-icon {
        font-size: 20px;
    }

    .product-category-3 .spec-label {
        font-size: 10px;
    }

    .product-category-3 .spec-value {
        font-size: 14px;
    }

    /* Furniture */
    .product-category-4 .furniture-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-category-4 .furniture-detail {
        padding: 10px;
    }

    .product-category-4 .furniture-detail-label {
        font-size: 10px;
    }

    .product-category-4 .furniture-detail-value {
        font-size: 13px;
    }

    /* Tourism */
    .product-category-5 .tourism-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-category-5 .tourism-highlight {
        padding: 12px;
    }

    .product-category-5 .tourism-icon {
        font-size: 18px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {

    .product-main-image img,
    .product-thumbnail img {
        transition: none;
    }

    .product-main-image:hover img,
    .product-thumbnail:hover img {
        transform: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {

    .product-images-section,
    .product-info-section,
    .seller-info,
    .product-details-section,
    .product-specs-section,
    .related-products-section {
        border: 2px solid #000;
    }

    .product-thumbnail {
        border: 2px solid #000;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .product-thumbnail {
        min-height: 60px;
        min-width: 60px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        min-height: 44px;
    }

    .seller-actions .btn-outline {
        min-height: 40px;
    }
}

/* Breadcrumb */
.product-breadcrumb {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    margin-bottom: 24px;
}

.product-breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.product-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
    color: #0052a3;
}

.product-breadcrumb .separator {
    color: #d1d5db;
}

.product-breadcrumb .current {
    color: #374151;
    font-weight: 500;
}

/* Main Product Layout */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Product Images */
.product-images-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.02);
}

.product-main-image.no-image {
    flex-direction: column;
    color: #9ca3af;
}

.product-main-image.no-image i {
    font-size: 48px;
    margin-bottom: 8px;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.product-thumbnail:hover {
    border-color: #0066cc;
}

.product-thumbnail.active {
    border-color: #0066cc;
    box-shadow: 0 0 0 1px #0066cc;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.product-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.featured {
    background: #fef3c7;
    color: #92400e;
}

.product-badge.urgent {
    background: #fee2e2;
    color: #991b1b;
}

.product-price-section {
    margin-bottom: 24px;
}

.product-price {
    font-size: 36px;
    font-weight: 800;
    color: #0066cc;
    margin-bottom: 8px;
}

.product-price-negotiable {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

/* Product Meta */
.product-meta {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

.product-meta-item:last-child {
    margin-bottom: 0;
}

.product-meta-item i {
    width: 16px;
    color: #6b7280;
    text-align: center;
}

/* Product Details */
.product-details {
    margin-bottom: 24px;
}

.product-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.product-detail-item:last-child {
    border-bottom: none;
}

.product-detail-label {
    font-weight: 600;
    color: #374151;
}

.product-detail-value {
    color: #6b7280;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-action-btn.primary {
    background: #0066cc;
    color: #ffffff;
}

.product-action-btn.primary:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.product-action-btn.secondary {
    background: #ffffff;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.product-action-btn.secondary:hover {
    background: #f8fafc;
    color: #0052a3;
}

.product-action-btn.outline {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.product-action-btn.outline:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

/* Product Description */
.product-description-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-description-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}

.product-description-content {
    line-height: 1.7;
    color: #374151;
    font-size: 16px;
}

.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4,
.product-description-content h5,
.product-description-content h6 {
    color: #111827;
    margin: 20px 0 12px 0;
    font-weight: 600;
    line-height: 1.3;
}

.product-description-content h1 {
    font-size: 24px;
}

.product-description-content h2 {
    font-size: 22px;
}

.product-description-content h3 {
    font-size: 20px;
}

.product-description-content h4 {
    font-size: 18px;
}

.product-description-content h5 {
    font-size: 16px;
}

.product-description-content h6 {
    font-size: 14px;
}

.product-description-content p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-description-content ul,
.product-description-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.product-description-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.product-description-content strong {
    font-weight: 600;
    color: #111827;
}

.product-description-content em {
    font-style: italic;
    color: #6b7280;
}

.product-description-content u {
    text-decoration: underline;
}

.product-description-content a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-description-content a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.product-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-description-content th,
.product-description-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.product-description-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.product-description-content tr:last-child td {
    border-bottom: none;
}

.product-description-content div {
    margin-bottom: 12px;
}

.product-description-content span {
    display: inline;
}

/* Seller Information */
.seller-info-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.seller-info-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}

.seller-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seller-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.seller-name i {
    color: #0066cc;
}

.seller-since {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
}

.seller-since i {
    color: #9ca3af;
}

.seller-actions {
    margin-top: 8px;
}

/* Related Products */
.related-products-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.related-products-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.related-product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0066cc;
}

.related-product-image {
    width: 100%;
    height: 200px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-image.no-image {
    color: #9ca3af;
    flex-direction: column;
}

.related-product-image.no-image i {
    font-size: 32px;
    margin-bottom: 8px;
}

.related-product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-product-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-product-badge.featured {
    background: #fef3c7;
    color: #92400e;
}

.related-product-badge.urgent {
    background: #fee2e2;
    color: #991b1b;
}

.related-product-info {
    padding: 20px;
}

.related-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.related-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #0066cc;
}

.related-product-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.related-product-location i {
    font-size: 10px;
}

.related-product-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9ca3af;
}

.related-product-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-product-views i {
    font-size: 10px;
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.contact-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.contact-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.contact-modal-body {
    padding: 32px;
}

.contact-info {
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 20px;
    color: #0066cc;
    text-align: center;
}

.contact-item span {
    color: #374151;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.contact-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
}

.contact-form-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.contact-form-submit {
    background: #0066cc;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-form-submit:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

/* Rate Seller Section */
.rate-seller-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.rate-seller-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.rate-seller-form {
    max-width: 500px;
}

.rating-input {
    margin-bottom: 1.5rem;
}

.rating-input label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    direction: rtl;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label.star {
    font-size: 24px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating label.star:hover,
.star-rating label.star:hover~label.star,
.star-rating input[type="radio"]:checked~label.star {
    color: #fbbf24;
}

.comment-input {
    margin-bottom: 1.5rem;
}

.comment-input label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.comment-input textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
}

.comment-input textarea:focus {
    outline: none;
    border-color: #06befc;
    box-shadow: 0 0 0 3px rgba(6, 190, 252, 0.1);
}

.comment-input textarea::placeholder {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-main {
        gap: 24px;
    }

    .product-info-section {
        padding: 24px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 28px;
    }

    .product-description-section,
    .seller-info-section,
    .related-products-section {
        padding: 24px;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .contact-modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .contact-modal-header,
    .contact-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .product-container {
        padding: 0 12px;
    }

    .product-main-image {
        height: 300px;
    }

    .product-thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 24px;
    }

    .product-actions {
        gap: 8px;
    }

    .product-action-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}