/**
 * Product Info Page Styles
 * Styling for the product information display page
 */

/* =======================
   Main Container & Layout
   ======================= */

.product-info-page {
    padding-left: 20px;
    padding-right: 20px;
}

.product-info-container {
    max-width: 1320px;
    margin: 0 auto;
}

/* =======================
   Product Display Section
   ======================= */

.product-info-section {
    padding: 50px 0;
}

.product-display-wrapper {
    display: flex;
    gap: 40px;
    background-color: #fff;
    border-radius: 8px;
}

/* Image Gallery Styles */
.product-gallery {
    display: flex;
    gap: 28px;
    width: 512px;
    flex-shrink: 0;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 60px;
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.thumbnail-item.active,
.thumbnail-item:hover {
    border-color: #108d52;
}

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

.gallery-main {
    position: relative;
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-item.active {
    opacity: 1;
}

.main-image-item img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.gallery-nav-btn.prev-btn {
    left: 10px;
}

.gallery-nav-btn.next-btn {
    right: 10px;
}

.gallery-nav-btn img {
    width: 22px;
    height: 24px;
    display: block;
}

.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 8px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.favorite-btn:hover {
    background-color: #ed3634;
    border-color: #ed3634;
}

.favorite-btn svg {
    width: 16px;
    height: 14px;
    display: block;
    color: #667085;
    transition: color 0.3s ease;
}

.favorite-btn:hover svg {
    color: white;
}

/* Product Details Styles */
.product-details {
    flex: 1;
    max-width: 752px;
}

.product-details-content {
    border: 1px solid #eaecf0;
    border-radius: 8px;
    padding: 14px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.product-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: #108d52;
    margin: 0;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 6px;
}

.action-btn:hover {
    background-color: #f5f5f5;
}

.action-btn img {
    width: 18px;
    height: 18px;
    display: block;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item img {
    width: 20px;
    height: 20px;
    display: block;
    margin-top: -3px;
}

.meta-text {
    font-size: 16px;
    line-height: 18px;
    color: #667085;
}

.meta-text strong {
    color: #101828;
    font-weight: 400;
}

.product-inquiries {
    font-size: 16px;
    line-height: 18px;
    color: #108d52;
    margin-bottom: 8px;
}

.product-inquiries strong {
    font-weight: 600;
}

.product-separator {
    height: 1px;
    background-color: #eeeeee;
    margin: 20px 0;
}

.product-specifications {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.spec-item {
    font-size: 14px;
    line-height: 20px;
    color: #667085;
}

.spec-item strong {
    color: #101828;
    font-weight: 600;
}

.btn-inquiry {
    background-color: #108d52;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 8px;
    min-width: 180px;
    justify-content: center;
    text-decoration: none;
}

.btn-inquiry:hover {
    background-color: #0d7543;
}

.btn-inquiry svg {
    width: 16px;
    height: 16px;
}

/* =======================
   Key Attributes Section
   ======================= */
.key-attributes-section {
    padding-bottom: 50px;
}

.section-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.87);
    margin: 0 0 4px 0;
}

.section-separator {
    height: 1px;
    background-color: #eeeeee;
    margin-bottom: 18px;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 16px;
    column-gap: 40px;
}

.attribute-item {
    font-size: 14px;
    line-height: 18px;
    color: #667085;
}

.attribute-item:nth-child(odd) {
    background-color: transparent;
}

.attribute-item strong {
    color: #1e1e1e;
    font-weight: 600;
}

/* =======================
   Company Profile Section
   ======================= */

.company-profile-section {
    border-radius: 8px;
    padding-bottom: 40px;
}

.company-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 18px 0;
}

.company-link {
    display: flex;
    gap: 16px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.company-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

.company-link:hover .company-name {
    color: #108d52;
}

.company-logo {
    width: 48px;
    height: 48px;
    border: 1px solid #108d52;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    overflow: hidden;
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-info {
    flex: 1;
}

.company-name {
    font-weight: 900;
    font-size: 14px;
    line-height: 20px;
    color: #000;
    margin: 0 0 4px 0;
}

.company-rating {
    display: flex;
    gap: 0;
}

.company-rating img {
    width: 18px;
    height: 18px;
    display: block;
}

.company-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 8px;
    column-gap: 40px;
}

.company-detail-item {
    background-color: rgba(163, 206, 77, 0.18);
    padding: 10px;
    display: flex;
    gap: 8px;
    font-size: 12px;
    line-height: 20px;
    color: #667085;
    border-radius: 4px;
}

.company-detail-item img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

.company-detail-item .detail-label {
    flex-shrink: 0;
    white-space: nowrap;
}

.company-detail-item .detail-value {
    color: #101828;
    font-weight: 600;
}

.company-detail-item .detail-value-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.company-detail-item strong {
    color: #101828;
    font-weight: 600;
}

.detail-link {
    color: #108d52;
    text-decoration: underline;
}

.detail-link:hover {
    text-decoration: none;
}

/* =======================
   Product Description Section
   ======================= */

.product-description-section {
    padding-bottom: 40px;
    border-radius: 8px;
}

.description-content {
    margin-top: 16px;
    position: relative;
}

.description-text {
    max-height: 90px;
    overflow: hidden;
    font-size: 14px;
    line-height: 20px;
    color: #838383;
    position: relative;
}

.description-text.expanded {
    max-height: none;
}

.description-text p {
    margin: 0;
}

.description-gradient {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    height: 16px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.description-gradient.hidden {
    opacity: 0;
}

.show-more-btn {
    background: transparent;
    border: none;
    color: #667085;
    font-size: 12px;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 0 0 0;
    transition: color 0.3s ease;
}

.show-more-btn:hover {
    color: #108d52;
}

.show-more-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.show-more-btn.expanded svg {
    transform: rotate(180deg);
}

.show-more-btn img {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.show-more-btn.expanded img {
    transform: rotate(180deg);
}

/* =======================
   Reviews Section
   ======================= */

.reviews-section {
    padding-bottom: 40px;
}

.reviews-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.reviews-summary {
    background-color: rgba(163, 206, 77, 0.18);
    border-radius: 8px;
    padding: 20px;
}

.reviews-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 20px;
    color: #000;
    margin: 0 0 8px 0;
    padding: 8px 0;
}

.reviews-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reviews-top-section {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trust-score {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    flex-shrink: 0;
}

.trust-logo {
    font-weight: 700;
    font-size: 10px;
    color: #000;
}

.trust-rating {
    font-weight: 700;
    font-size: 14px;
    color: #000;
}

.trust-stars {
    display: flex;
    gap: 0;
}

.trust-stars img {
    width: 14px;
    height: 12px;
    display: block;
}

.trust-count {
    font-size: 10px;
    color: #667085;
}

.reviews-description {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reviews-description p {
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    margin: 0 0 8px 0;
    max-height: 98px;
    overflow: hidden;
}

.reviews-description p.expanded {
    max-height: none;
}

.reviews-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 16px;
    background-color: #e4ebd6;
    border-radius: 8px;
    padding: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #667085;
}

.stat-value {
    font-size: 12px;
    font-weight: 600;
    color: #101828;
}

/* Buyer Inquiries */
.buyer-inquiries {
    background-color: #fff;
    border-radius: 8px;
    padding: 12px 0;
}

.inquiries-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: #000;
    margin: 0 0 4px 0;
}

.inquiries-list {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 8px;
}

.inquiry-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.inquiry-info {
    flex: 1;
    display: flex;
    align-items: start;
    flex-direction: column;
}

.inquiry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.inquiry-name {
    font-weight: 500;
    font-size: 14px;
    color: #000;
}

.inquiry-rating {
    display: flex;
    align-items: center;
    gap: 1px;
}

.inquiry-rating img {
    width: 14px;
    height: 14px;
    display: block;
}

.rating-value {
    font-size: 12px;
    color: #FFCB45;
    margin-left: 4px;
}

.inquiry-country {
    border: 1px solid #EAECF0;
    border-radius: 4px;
    padding: 1px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.country-flag {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    border-radius: 2px;
}

.country-name {
    font-size: 12px;
    color: #667085;
}

.inquiry-date {
    font-size: 14px;
    color: #667085;
}

/* =======================
   Inquiry Form Section
   ======================= */

.inquiry-form-section {
    padding-bottom: 40px;
}

.inquiry-form-dialog {
    background-color: #fff;
    border: 1px solid #eaecf0;
    border-radius: 8px;
}

.inquiry-form {
    padding: 16px;
}

.form-recipient {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.form-label {
    font-size: 14px;
    color: #1d2939;
}

.recipient-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipient-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #108d52;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.recipient-details {
    flex: 1;
}

.recipient-name {
    font-size: 14px;
    color: #1d2939;
}

.recipient-name strong {
    font-weight: 500;
    color: var(--color-primary);
}

.recipient-role {
    color: #667085;
    font-size: 12px;
}

.recipient-company {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #667085;
}

.recipient-company img {
    width: 18px;
    height: 19px;
}

.form-message-section {
    margin-bottom: 8px;
}

.form-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-label-row svg {
    width: 21px;
    height: 19px;
}

.form-message-field {
    position: relative;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    padding: 10px 14px;
    background-color: #fff;
}

.message-textarea {
    width: 100%;
    min-height: 68px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    color: #1d2939;
}

.form-fields-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.form-field {
    width: 160px;
    flex-shrink: 0;
}

.form-field .form-input {
    width: 100%;
    padding: 7px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 12px;
    line-height: 20px;
    color: #1d2939;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-field .form-input:hover {
    border-color: #b0b0b0;
}

.form-field .form-input:focus {
    border-color: #108d52;
    box-shadow: 0 0 0 3px rgba(16, 141, 82, 0.1);
}

.form-field .form-input::placeholder {
    color: #9ca3af;
}

.form-field select.form-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4' fill='none'%3E%3Cpath d='M3.99989 3.82C3.73323 3.82 3.49323 3.71333 3.27989 3.5L0.639893 0.86L1.35989 0.18L3.99989 2.82L6.63989 0.18L7.35989 0.86L4.71989 3.5C4.50656 3.71333 4.26656 3.82 3.99989 3.82Z' fill='%23667085'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px ;
    cursor: pointer;
}

.form-field select.form-input:invalid,
.form-field select.form-input option[value=""]:checked {
    color: #9ca3af;
}

.form-field select.form-input:valid:not([value=""]) {
    color: #1d2939;
}

.form-field select.form-input option {
    color: #1d2939;
}

.form-field select.form-input option[value=""] {
    color: #9ca3af;
}

/* Combined input field (quantity + unit) */
.form-field-combined {
    display: flex;
    gap: 0;
    position: relative;
    width: 190px;
    flex-shrink: 0;
}

.form-field-combined .form-input-quantity {
    flex: 1;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.form-field-combined .form-input-unit {
    width: 84px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 1px solid #e0e0e0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4' fill='none'%3E%3Cpath d='M3.99989 3.82C3.73323 3.82 3.49323 3.71333 3.27989 3.5L0.639893 0.86L1.35989 0.18L3.99989 2.82L6.63989 0.18L7.35989 0.86L4.71989 3.5C4.50656 3.71333 4.26656 3.82 3.99989 3.82Z' fill='%23667085'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
    cursor: pointer;
    color: #1d2939;
}

.form-field-combined .form-input:focus {
    position: relative;
    z-index: 1;
}

.form-field-combined .form-input-quantity:focus {
    border-right: 1px solid #108d52;
    border-right-width: 1px;
}

.form-field-combined .form-input-unit:focus {
    border-left-color: #108d52;
}

.form-footer {
    padding-top: 12px;
    border-top: 1px solid #eaecf0;
    display: flex;
    justify-content: flex-end;
}

.btn-submit-inquiry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background-color: #108d52;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: auto;
}

.btn-submit-inquiry:hover {
    background-color: #0a6d3f;
}

.btn-submit-inquiry img {
    width: 16px;
    height: 16px;
}



/* =======================
   Responsive Design
   ======================= */

/* Ensure width override works at 1200px and above */
@media (min-width: 1200px) {
     .product-info-container {
        max-width: 1320px;
    }
}

@media (max-width: 1200px) {
    .product-gallery {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .product-details {
        max-width: 100%;
    }

    .reviews-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 768px) {
    .product-info-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .product-info-section {
        padding: 20px 0;
    }

    .product-display-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .product-gallery {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }

    .gallery-main {
        width: 100%;
        aspect-ratio: 1;
        min-height: 335px;
        order: 1;
    }

    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        order: 2;
    }

    .gallery-thumbnails::-webkit-scrollbar {
        height: 4px;
    }

    .gallery-thumbnails::-webkit-scrollbar-thumb {
        background: #e0e0e0;
        border-radius: 2px;
    }

    .thumbnail-item {
        flex-shrink: 0;
        width: 59px;
        height: 59px;
    }

    .gallery-nav-btn {
        width: 40px;
        height: 40px;
    }

    .gallery-nav-btn.prev-btn {
        left: 10px;
    }

    .gallery-nav-btn.next-btn {
        right: 10px;
    }

    .favorite-btn {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        padding: 5px;
    }

    .product-details {
        max-width: 100%;
    }

    .product-details-content {
        padding: 13px;
        position: relative;
    }

    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 10px;
    }

    .product-title {
        font-size: 14px;
        line-height: 20px;
        width: 100%;
    }

    .product-actions {
        position: absolute;
        bottom: 13px;
        right: 13px;
    }

    .product-meta {
        margin-bottom: 8px;
    }

    .meta-text {
        font-size: 12px;
        line-height: 18px;
    }

    .product-inquiries {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 8px;
    }

    .product-separator {
        margin: 10px 0;
    }

    .product-specifications {
        gap: 6px;
    }

    .spec-item {
        font-size: 12px;
        line-height: 20px;
    }

    .btn-inquiry {
        width: 100%;
        max-width: 179px;
        margin-top: 8px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .key-attributes-section {
        padding-bottom: 20px;
    }

    .section-title {
        font-size: 15px;
        line-height: 20px;
        margin-bottom: 4px;
    }

    .section-separator {
        margin-bottom: 10px;
    }

    .attributes-grid {
        grid-template-columns: 1fr;
        row-gap: 8px;
        column-gap: 0;
    }

    .attribute-item {
        font-size: 12px;
        line-height: 18px;
    }

    .company-profile-section {
        padding-bottom: 20px;
    }

    .company-header {
        margin: 18px 0;
    }

    .company-logo {
        width: 48px;
        height: 48px;
    }

    .company-name {
        font-size: 14px;
        line-height: 20px;
    }

    .company-rating img {
        width: 14px;
        height: 14px;
    }

    .company-details-grid {
        grid-template-columns: 1fr;
        row-gap: 8px;
        column-gap: 0;
    }

    .company-detail-item {
        padding: 10px;
        font-size: 12px;
        line-height: 20px;
    }

    .product-description-section {
        padding-bottom: 20px;
    }

    .description-content {
        margin-top: 16px;
    }

    .description-text {
        font-size: 12px;
        line-height: 18px;
        max-height: 90px;
    }

    .reviews-section {
        padding-bottom: 20px;
    }

    .reviews-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reviews-summary {
        padding: 12px;
    }

    .reviews-title {
        font-size: 15px;
        line-height: 15px;
        margin-bottom: 8px;
        padding: 0;
    }

    .reviews-content {
        gap: 16px;
    }

    .reviews-top-section {
        flex-direction: column;
        gap: 16px;
    }

    .trust-score {
        padding: 25px 40px;
        width: 100%;
        max-width: 143px;
        margin: 0 auto;
    }

    .trust-logo {
        font-size: 10px;
    }

    .trust-rating {
        font-size: 14px;
    }

    .trust-stars img {
        width: 12px;
        height: 12px;
    }

    .trust-count {
        font-size: 10px;
    }

    .reviews-description {
        width: 100%;
    }

    .reviews-description p {
        font-size: 12px;
        line-height: 18px;
        max-height: 98px;
    }

    .reviews-bottom-section {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .reviews-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
        margin-top: 0;
    }

    .stat-item {
        gap: 4px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-value {
        font-size: 12px;
    }

    .buyer-inquiries {
        padding: 0;
    }

    .inquiries-title {
        font-size: 15px;
        line-height: 20px;
        margin-bottom: 4px;
    }

    .inquiries-list {
        margin-top: 8px;
    }

    .inquiry-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .inquiry-info {
        width: 100%;
    }

    .inquiry-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .inquiry-name {
        font-size: 12px;
    }

    .inquiry-rating img {
        width: 11px;
        height: 10px;
    }

    .rating-value {
        font-size: 12px;
    }

    .inquiry-country {
        margin-top: 4px;
    }

    .inquiry-date {
        font-size: 12px;
        align-self: flex-end;
        margin-top: -24px;
    }

    .inquiry-form-section {
        padding-bottom: 20px;
    }

    .inquiry-form-dialog {
        border-radius: 8px;
    }

    .inquiry-form {
        padding: 12px;
    }

    .form-recipient {
        margin-bottom: 16px;
    }

    .form-label {
        font-size: 14px;
    }

    .recipient-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .recipient-details {
        flex: 1;
    }

    .recipient-name {
        font-size: 14px;
        line-height: 21px;
    }

    .recipient-role {
        font-size: 12px;
    }

    .recipient-company {
        font-size: 12px;
        margin-top: 1px;
    }

    .form-message-section {
        margin-bottom: 8px;
    }

    .form-label-row {
        margin-bottom: 8px;
    }

    .form-message-field {
        padding: 10px 14px;
    }

    .message-textarea {
        min-height: 68px;
        font-size: 12px;
    }

    .form-fields-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 8px;
    }

    .form-field {
        width: 100%;
    }

    .form-field .form-input {
        font-size: 12px;
    }

    .form-field-combined {
        width: 100%;
        max-width: 100%;
    }

    .form-field-combined .form-input-quantity,
    .form-field-combined .form-input-unit {
        font-size: 12px;
    }

    .form-field-combined .form-input-quantity {
        flex: 1;
    }

    .form-field-combined .form-input-unit {
        width: 74px;
    }

    .form-footer {
        padding-top: 12px;
        justify-content: flex-end;
    }

    .btn-submit-inquiry {
        width: 100%;
        max-width: 138px;
        padding: 7.5px 12px;
        font-size: 12px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-info-page {
        padding-left: 0;
        padding-right: 0;
    }

    .product-info-container {
        padding-left: 10px;
        padding-right: 10px;
    }

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

    .gallery-main {
        min-height: 335px;
    }

    .gallery-thumbnails {
        gap: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .thumbnail-item {
        width: 59px;
        height: 59px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .product-details-content {
        padding: 13px;
    }

    .product-actions {
        margin-top: -40px;
    }

    .action-btn {
        min-width: 28px;
        min-height: 28px;
        touch-action: manipulation;
    }

    .btn-inquiry {
        width: 100%;
        max-width: 179px;
        touch-action: manipulation;
    }

    .gallery-nav-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .favorite-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

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

    .form-field-combined {
        max-width: 100%;
    }

    .form-field .form-input {
        touch-action: manipulation;
        font-size: 12px;
    }

    .btn-submit-inquiry {
        max-width: 100%;
        touch-action: manipulation;
    }

    .show-more-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Improve touch targets on mobile */
    .inquiry-item {
        min-height: 69px;
    }

    .inquiry-date {
        margin-top: 0;
        align-self: flex-end;
    }

    /* Better spacing for mobile */
    .product-info-section {
        padding: 20px 0;
    }

    .key-attributes-section,
    .company-profile-section,
    .product-description-section,
    .reviews-section,
    .inquiry-form-section {
        padding-bottom: 20px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    /* Improve touch interactions */
    button,
    .btn-inquiry,
    .btn-submit-inquiry,
    .gallery-nav-btn,
    .favorite-btn,
    .action-btn {
        -webkit-tap-highlight-color: rgba(16, 141, 82, 0.1);
        touch-action: manipulation;
    }

    /* Prevent text selection on buttons */
    button,
    .btn-inquiry,
    .btn-submit-inquiry {
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Better form input sizing on mobile */
    .form-input,
    .message-textarea {
        font-size: 12px; /* Prevents zoom on iOS */
    }

    /* Improve thumbnail scrolling */
    .gallery-thumbnails {
        scrollbar-width: thin;
        scrollbar-color: #e0e0e0 transparent;
    }

    /* Better spacing for mobile content */
    .product-display-wrapper {
        gap: 20px;
    }

    /* Adjust trust score on mobile */
    .trust-score {
        align-self: center;
    }
}

