
/* =========================================
   WEB EXPORT — PRODUCT DETAILS PAGE
   Brand Colors:
   Primary: #1769aa
   Hover:   #12558b
   Dark:    #103f6b
   Light:   #eaf4ff
========================================= */

/* Main page */
.we-details-page {
    padding-top: 42px;
    padding-bottom: 60px;
    color: #263445;
}

/* Product image left, information right */
.we-details-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 38px;
    align-items: start;
    margin-bottom: 48px;
}

/* Main product image */
.we-details-image {
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 16px;
}

.we-details-image img {
    width: 100%;
    height: 420px;
    object-fit: contain;
}

.we-details-info {
    padding: 8px 0;
}

/* Product category */
.we-details-category {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--we-primary, #1769aa);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Product title */
.we-details-info h1 {
    margin: 0 0 16px;
    color: #182536;
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 700;
    line-height: 1.3;
}

/* Product price */
.we-details-price {
    margin-bottom: 18px;
    color: var(--we-primary, #1769aa);
    font-size: 29px;
    font-weight: 800;
}

.we-details-description {
    margin-bottom: 22px;
    color: #657184;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* Supplier and order information */
.we-details-quick-info {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.we-details-quick-info > div {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    background: var(--we-accent-light, #eaf4ff);
    border: 1px solid #d8e9f8;
    border-radius: 10px;
}

.we-details-quick-info > div > i {
    color: var(--we-primary, #1769aa);
    font-size: 22px;
    flex-shrink: 0;
}

.we-details-quick-info span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.we-details-quick-info small {
    color: #7c8796;
    font-size: 12px;
}

.we-details-quick-info strong {
    color: #263445;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* Primary inquiry CTA */
.we-details-inquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 9px;
    background: var(--we-primary, #1769aa);
    box-shadow: 0 7px 18px rgba(23, 105, 170, .20);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.we-details-inquiry-btn:hover {
    color: #fff;
    background: var(--we-primary-hover, #12558b);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(23, 105, 170, .25);
}

/* General content sections */
.we-details-section {
    margin-top: 32px;
    margin-bottom: 44px;
    padding: 28px;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 16px;
}

/* Section headings */
.we-section-heading {
    margin-bottom: 25px;
}

.we-section-heading > span {
    color: var(--we-primary, #1769aa);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.we-section-heading h2 {
    margin: 7px 0;
    color: #182536;
    font-size: clamp(23px, 2.5vw, 30px);
    font-weight: 750;
}

.we-section-heading p,
.we-muted-text {
    color: #7b8796;
    line-height: 1.7;
}

.we-details-section h3 {
    color: #263445;
    font-size: 18px;
    font-weight: 700;
}

/* Product overview */
.we-overview-text {
    color: #647184;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* Specifications grid */
.we-specification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.we-specification-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 15px;
    background: #f4f8fc;
    border: 1px solid #e7eff8;
    border-radius: 9px;
}

.we-specification-item span {
    color: #778397;
    font-size: 13px;
}

.we-specification-item strong {
    color: #263445;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* Seller overview */
.we-seller-overview {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid #dfeaf5;
    border-radius: 12px;
    background: #fbfdff;
}

.we-seller-icon {
    display: flex;
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--we-accent-light, #eaf4ff);
    color: var(--we-primary, #1769aa);
    font-size: 25px;
}

.we-seller-overview p {
    margin: 6px 0;
    color: #718095;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Inquiry callout panel */
.we-inquiry-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #dceafa;
    border-radius: 12px;
    background: var(--we-accent-light, #eaf4ff);
}

.we-inquiry-panel h3 {
    margin-bottom: 7px;
}

.we-inquiry-panel p {
    margin: 0;
    color: #748094;
    line-height: 1.6;
}

/* Similar products and seller products grid */
.we-details-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.we-details-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.we-details-product-card:hover {
    transform: translateY(-3px);
    border-color: #c7dff3;
    box-shadow: 0 10px 25px rgba(24, 37, 54, .09);
}

/* Product card image */
.we-details-card-image {
    display: flex;
    height: 205px;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #f4f8fc;
    text-decoration: none;
}

.we-details-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product card content */
.we-details-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
}

.we-details-card-body h3 {
    margin: 0 0 9px;
    font-size: 16px;
    line-height: 1.5;
}

.we-details-card-body h3 a {
    color: #253448;
    text-decoration: none;
}

.we-details-card-body h3 a:hover {
    color: var(--we-primary-hover, #12558b);
}

.we-card-description {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin-bottom: 12px;
    color: #778397;
    font-size: 13px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Card price */
.we-card-price {
    margin-bottom: 10px;
    color: var(--we-primary, #1769aa);
    font-size: 16px;
}

.we-card-seller {
    color: #778397;
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* Product card link */
.we-card-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 10px;
    color: var(--we-primary, #1769aa);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.we-card-inquiry:hover {
    color: var(--we-primary-hover, #12558b);
}

/* Image fallback */
.we-no-image {
    display: flex;
    width: 100%;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #9aa5b4;
}

.we-no-image i {
    font-size: 36px;
}

/* Product not found */
.we-product-not-found {
    padding: 80px 15px;
    text-align: center;
}

.we-product-not-found > i {
    color: var(--we-primary, #1769aa);
    font-size: 48px;
}

.we-product-not-found h1 {
    margin-top: 18px;
    color: var(--we-primary-dark, #103f6b);
    font-weight: 750;
}

.we-product-not-found p {
    margin: 12px 0 24px;
    color: #778397;
}

/* Responsive tablet layout */
@media (max-width: 1199px) {
    .we-details-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .we-details-main {
        gap: 25px;
    }
}

/* Responsive mobile layout */
@media (max-width: 767px) {
    .we-details-page {
        padding-top: 22px;
        padding-bottom: 35px;
    }

    .we-details-main {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 30px;
    }

    .we-details-image {
        min-height: 260px;
        padding: 15px;
    }

    .we-details-image img {
        height: 300px;
    }

    .we-details-section {
        margin-top: 22px;
        margin-bottom: 26px;
        padding: 19px;
        border-radius: 12px;
    }

    .we-specification-grid {
        grid-template-columns: 1fr;
    }

    .we-inquiry-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .we-details-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .we-details-card-image {
        height: 145px;
        padding: 9px;
    }

    .we-details-card-body {
        padding: 12px;
    }

    .we-details-card-body h3 {
        font-size: 14px;
    }

    .we-seller-overview {
        padding: 16px;
        gap: 12px;
    }

    .we-seller-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}

/* Small mobile screens */
@media (max-width: 380px) {
    .we-details-product-grid {
        grid-template-columns: 1fr;
    }

    .we-details-card-image {
        height: 200px;
    }
}
