/* ==========================================================================
   MATRIX INDUSTRIAL TRADERS — B2B SINGLE PRODUCT STYLESHEET (V5 MASTER POLISH)
   Strictly Scoped to Single Product Pages (.single-product)
   Complete Space Management & Fluid Responsiveness: Desktop / Tablet / Mobile
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FIXED HEADER CLEARANCE & CONTAINER RESET
   -------------------------------------------------------------------------- */
.single-product.ast-separate-container #primary,
.single-product #primary {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.single-product.ast-separate-container .ast-article-single,
.single-product .ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Desktop Fixed Header Clearance (136px gives balanced 20px clearance below 116px sticky header) */
body.single-product .site-content,
body.single-product #content,
.single-product .site-content,
.single-product #content,
.single-product.woocommerce .site-content,
.single-product.woocommerce #content,
.single-product.woocommerce-page .site-content,
.single-product.woocommerce-page #content {
    padding-top: 136px !important;
    padding-bottom: 40px !important;
}

/* Single Product Content Container - Centered, Balanced 1240px Max Width */
body.single-product .site-content > .ast-container,
body.single-product #content > .ast-container,
.single-product .site-content > .ast-container,
.single-product #content > .ast-container {
    max-width: 1240px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

/* Remove phantom empty notice wrappers */
.single-product .woocommerce-notices-wrapper:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .ast-woocommerce-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide script tags from grid layout calculations */
.single-product div.product script {
    display: none !important;
}

/* Remove retail artifacts not applicable to B2B */
.single-product p.price:empty,
.single-product .summary p.price:empty,
.single-product .ast-shipping-text,
.single-product .woocommerce span.onsale {
    display: none !important;
}

/* --------------------------------------------------------------------------
   2. DESKTOP VIEW (1024px+) — BALANCED TWO-COLUMN INDUSTRIAL GRID
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    .single-product div.product {
        display: grid !important;
        grid-template-columns: 46% 50% !important;
        grid-template-areas:
            "gallery summary"
            "tabs tabs"
            "related related"
            "rfq rfq";
        gap: 0 4% !important;
        align-items: start;
        margin-bottom: 40px !important;
    }

    .single-product div.product div.images.woocommerce-product-gallery {
        grid-area: gallery;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    .single-product div.product div.summary.entry-summary {
        grid-area: summary;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding-left: 0 !important;
    }

    .single-product div.product .woocommerce-tabs.wc-tabs-wrapper {
        grid-area: tabs;
        width: 100% !important;
        margin-top: 36px !important;
    }

    .single-product div.product .related.products {
        grid-area: related;
        width: 100% !important;
        margin-top: 36px !important;
    }

    .single-product .related.products ul.products {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px !important;
    }

    .single-product div.product .mit-product-rfq-wrap {
        grid-area: rfq;
        width: 100% !important;
        margin-top: 36px !important;
    }
}

/* --------------------------------------------------------------------------
   3. TABLET & LAPTOP VIEW (768px – 1023px) — BALANCED TWO-COLUMN & COMPACT
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Fixed tablet header clearance (90px gives clean 22px clearance below 68px header) */
    body.single-product .site-content,
    body.single-product #content,
    .single-product .site-content,
    .single-product #content,
    .single-product.woocommerce .site-content,
    .single-product.woocommerce #content {
        padding-top: 90px !important;
        padding-bottom: 32px !important;
    }

    body.single-product .site-content > .ast-container,
    body.single-product #content > .ast-container,
    .single-product .site-content > .ast-container,
    .single-product #content > .ast-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .single-product div.product {
        display: grid !important;
        grid-template-columns: 44% 52% !important;
        grid-template-areas:
            "gallery summary"
            "tabs tabs"
            "related related"
            "rfq rfq";
        gap: 0 4% !important;
        align-items: start;
        margin-bottom: 30px !important;
    }

    .single-product div.product div.images.woocommerce-product-gallery {
        grid-area: gallery;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 16px !important;
    }

    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
        max-height: 320px;
    }

    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
        max-height: 300px;
    }

    .single-product div.product div.summary.entry-summary {
        grid-area: summary;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding-left: 0 !important;
    }

    .single-product .summary h1.product_title.entry-title {
        font-size: 23px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    .single-product .summary .woocommerce-product-details__short-description {
        font-size: 14px !important;
        line-height: 1.58 !important;
        margin-bottom: 12px !important;
    }

    .single-product div.product .woocommerce-tabs.wc-tabs-wrapper {
        grid-area: tabs;
        width: 100% !important;
        margin-top: 30px !important;
    }

    .single-product .woocommerce-Tabs-panel {
        padding: 22px 24px !important;
    }

    .single-product div.product .related.products {
        grid-area: related;
        width: 100% !important;
        margin-top: 30px !important;
    }

    .single-product .related.products ul.products {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }

    .single-product div.product .mit-product-rfq-wrap {
        grid-area: rfq;
        width: 100% !important;
        margin-top: 30px !important;
    }

    .mit-product-rfq-card {
        padding: 22px 24px !important;
    }
}

/* --------------------------------------------------------------------------
   4. PRODUCT IMAGE GALLERY PRESENTATION (ALL BREAKPOINTS)
   -------------------------------------------------------------------------- */
.single-product .woocommerce-product-gallery {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    width: 100%;
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 420px;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    transition: transform 0.25s ease;
}

.single-product .woocommerce-product-gallery:hover .woocommerce-product-gallery__image img {
    transform: scale(1.02);
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9;
    width: 34px;
    height: 34px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Gallery Thumbnails */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 0;
    list-style: none;
    justify-content: center;
    width: 100%;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 68px;
    height: 68px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: #003366;
}

/* --------------------------------------------------------------------------
   5. PRODUCT SUMMARY & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.single-product .summary.entry-summary {
    display: flex;
    flex-direction: column;
}

/* Breadcrumb */
.single-product .summary .woocommerce-breadcrumb {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.single-product .summary .woocommerce-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-product .summary .woocommerce-breadcrumb a:hover {
    color: #003366;
}

/* Category Badge */
.single-product .summary .single-product-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #003366;
    background: #e0f2fe;
    padding: 3px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 10px;
}

.single-product .summary .single-product-category a {
    color: #003366;
    text-decoration: none;
}

/* Product Title */
.single-product .summary h1.product_title.entry-title {
    font-size: 28px;
    font-weight: 700;
    color: #003366;
    line-height: 1.28;
    margin: 0 0 12px 0;
    letter-spacing: -0.2px;
    word-break: break-word;
}

/* Short Description */
.single-product .summary .woocommerce-product-details__short-description {
    font-size: 15px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.single-product .summary .woocommerce-product-details__short-description p {
    margin: 0;
}

/* Product Metadata (SKU & Categories) */
.single-product .summary .product_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.single-product .summary .product_meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.single-product .summary .product_meta .sku_wrapper {
    font-weight: 600;
    color: #1e293b;
}

.single-product .summary .product_meta .sku {
    background: #f1f5f9;
    color: #003366;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-weight: 700;
}

.single-product .summary .product_meta .posted_in a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 500;
}

.single-product .summary .product_meta .posted_in a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   6. B2B CTA BUTTONS & TRUST BADGES
   -------------------------------------------------------------------------- */
.mit-b2b-cta-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 4px 0 16px 0;
    box-shadow: 0 2px 6px rgba(0, 51, 102, 0.04);
}

.mit-b2b-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

/* Primary "Request a Quote" Button */
.mit-btn-quote {
    flex: 1 1 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    background: #003366;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 7px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 8px rgba(0, 51, 102, 0.2);
    cursor: pointer;
    box-sizing: border-box;
}

.mit-btn-quote:hover {
    background: #002244;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 51, 102, 0.28);
}

.mit-btn-quote:active {
    transform: scale(0.98);
}

.mit-btn-quote .mit-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Secondary "WhatsApp" Button */
.mit-btn-whatsapp {
    flex: 1 1 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    background: #25D366;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 7px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.2);
    cursor: pointer;
    box-sizing: border-box;
}

.mit-btn-whatsapp:hover {
    background: #1ebc59;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.28);
}

.mit-btn-whatsapp:active {
    transform: scale(0.98);
}

.mit-btn-whatsapp .mit-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Trust Badges */
.mit-b2b-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.mit-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.mit-badge-item svg {
    width: 15px;
    height: 15px;
    color: #003366;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. PRODUCT TABS & SPECIFICATIONS TABLE
   -------------------------------------------------------------------------- */
.single-product .woocommerce-tabs.wc-tabs-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 36px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Modern Segmented Pill Tab Navigation */
.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 8px 12px;
    list-style: none;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    gap: 8px;
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    flex-shrink: 0;
}

.single-product .woocommerce-tabs ul.tabs li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
    background: #003366 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0, 51, 102, 0.25) !important;
}

.single-product .woocommerce-tabs ul.tabs li:not(.active) a:hover {
    color: #003366;
    background: #e2e8f0;
}

/* Tab Content Panel */
.single-product .woocommerce-Tabs-panel {
    background: #ffffff;
    border: none;
    padding: 26px 30px;
    box-sizing: border-box;
}

.single-product .woocommerce-Tabs-panel h3 {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    margin: 22px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.single-product .woocommerce-Tabs-panel h3:first-child {
    margin-top: 0;
}

.single-product .woocommerce-Tabs-panel p {
    font-size: 15px;
    color: #334155;
    line-height: 1.68;
    margin-bottom: 16px;
}

.single-product .woocommerce-Tabs-panel ul {
    margin: 0 0 18px 0;
    padding-left: 20px;
}

.single-product .woocommerce-Tabs-panel ul li {
    font-size: 14px;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 8px;
}

.single-product .woocommerce-Tabs-panel ul li strong {
    color: #003366;
}

/* Responsive Table Wrapper */
.mit-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 16px 0 22px 0;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.mit-table-scroll-hint {
    display: none;
}

/* Specifications Table */
.single-product .woocommerce-Tabs-panel table.table-specs,
.single-product .woocommerce-Tabs-panel .mit-table-responsive table {
    width: 100%;
    margin: 0 !important;
    border-collapse: collapse !important;
    background: #ffffff;
    border: none !important;
}

.single-product .woocommerce-Tabs-panel table.table-specs th,
.single-product .woocommerce-Tabs-panel .mit-table-responsive table th {
    background: #003366 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 12px 18px !important;
    text-align: left;
    border: 1px solid #002244 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.single-product .woocommerce-Tabs-panel table.table-specs td,
.single-product .woocommerce-Tabs-panel .mit-table-responsive table td {
    padding: 11px 18px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    line-height: 1.55;
    vertical-align: middle;
}

/* Parameter Column (First Column) */
.single-product .woocommerce-Tabs-panel table.table-specs td:first-child,
.single-product .woocommerce-Tabs-panel .mit-table-responsive table td:first-child {
    font-weight: 600 !important;
    color: #003366 !important;
    width: 35% !important;
    min-width: 150px;
    background-color: #f8fafc !important;
    border-right: 2px solid #cbd5e1 !important;
}

/* Specification Column (Second Column) */
.single-product .woocommerce-Tabs-panel table.table-specs td:last-child,
.single-product .woocommerce-Tabs-panel .mit-table-responsive table td:last-child {
    width: 65% !important;
    background-color: #ffffff !important;
    min-width: 240px;
}

/* Zebra Striping */
.single-product .woocommerce-Tabs-panel table.table-specs tbody tr:nth-child(even) td,
.single-product .woocommerce-Tabs-panel .mit-table-responsive table tbody tr:nth-child(even) td {
    background-color: #f8fafc !important;
}

.single-product .woocommerce-Tabs-panel table.table-specs tbody tr:hover td,
.single-product .woocommerce-Tabs-panel .mit-table-responsive table tbody tr:hover td {
    background-color: #f1f5f9 !important;
}

/* Product Attributes Tab Table */
.single-product .woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.single-product .woocommerce-product-attributes th {
    font-weight: 600;
    color: #003366;
    padding: 11px 16px;
    border-bottom: 1px solid #e2e8f0;
    width: 32%;
    background: #f8fafc;
    font-size: 13px;
}

.single-product .woocommerce-product-attributes td {
    padding: 11px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   8. COMPACT RELATED PRODUCTS SECTION
   -------------------------------------------------------------------------- */
.single-product .related.products {
    margin-top: 36px !important;
    margin-bottom: 30px !important;
}

.single-product .related.products > h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #003366 !important;
    margin-bottom: 18px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.single-product .related.products ul.products {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.single-product .related.products ul.products li.mit-product-card {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.single-product .related.products ul.products li.mit-product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 18px rgba(0, 51, 102, 0.1) !important;
    border-color: #cbd5e1 !important;
}

.single-product .related.products .mit-product-card__image-wrap {
    height: 140px !important;
    aspect-ratio: auto !important;
    padding: 10px !important;
    background: #ffffff !important;
}

.single-product .related.products .mit-product-card__image {
    height: 100% !important;
    max-height: 120px !important;
    width: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

.single-product .related.products .mit-product-card__body {
    padding: 12px 14px 14px !important;
}

.single-product .related.products .mit-product-card__title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #003366 !important;
    line-height: 1.4 !important;
    margin: 0 0 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.single-product .related.products .mit-product-card__category {
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

/* --------------------------------------------------------------------------
   9. BOTTOM RFQ FORM CARD
   -------------------------------------------------------------------------- */
.mit-product-rfq-wrap {
    margin: 36px 0 24px;
}

.mit-product-rfq-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.mit-rfq-header {
    margin-bottom: 20px;
}

.mit-rfq-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #003366;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.mit-rfq-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #003366;
    margin: 4px 0 8px;
}

.mit-rfq-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.mit-rfq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mit-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mit-form-group.full-width {
    grid-column: span 2;
    margin-top: 4px;
}

.mit-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.mit-form-group .req {
    color: #dc2626;
}

.mit-form-group input,
.mit-form-group textarea {
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.mit-form-group input:focus,
.mit-form-group textarea:focus {
    outline: none;
    border-color: #003366;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.12);
}

.mit-rfq-submit-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mit-rfq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #003366;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    padding: 13px 30px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(0, 51, 102, 0.2);
}

.mit-rfq-btn:hover {
    background: #002244;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 51, 102, 0.3);
}

.mit-rfq-btn:active {
    transform: scale(0.98);
}

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

.mit-rfq-feedback {
    font-size: 13.5px;
    flex: 1;
}

/* --------------------------------------------------------------------------
   10. MOBILE & PHABLET VIEW (320px – 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Mobile Header Clearance (84px gives clean 16px clearance below 68px header) */
    body.single-product .site-content,
    body.single-product #content,
    .single-product .site-content,
    .single-product #content,
    .single-product.woocommerce .site-content,
    .single-product.woocommerce #content {
        padding-top: 84px !important;
        padding-bottom: 24px !important;
    }

    body.single-product .site-content > .ast-container,
    body.single-product #content > .ast-container,
    .single-product .site-content > .ast-container,
    .single-product #content > .ast-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .single-product div.product {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    /* Mobile Image Gallery */
    .single-product div.product div.images.woocommerce-product-gallery {
        width: 100% !important;
        float: none !important;
        padding: 10px !important;
        margin: 0 !important; /* Unified with gap: 16px to prevent double spacing */
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
        max-height: 290px;
        width: 100%;
    }

    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
        max-height: 275px;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain !important;
    }

    /* Mobile Product Summary: Unified baseline matching gallery & CTA cards */
    .single-product div.product div.summary.entry-summary {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .single-product .summary .woocommerce-breadcrumb {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }

    .single-product .summary .single-product-category {
        font-size: 10px !important;
        padding: 2px 7px !important;
        margin-bottom: 6px !important;
    }

    .single-product .summary h1.product_title.entry-title {
        font-size: 21px !important;
        line-height: 1.32 !important;
        margin: 0 0 10px 0 !important;
        letter-spacing: -0.2px;
        word-break: break-word;
    }

    .single-product .summary .woocommerce-product-details__short-description {
        font-size: 14px !important;
        line-height: 1.62 !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
        color: #475569;
    }

    .single-product .summary .product_meta {
        font-size: 12px !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
        gap: 6px 12px !important;
    }

    /* Mobile CTA Buttons */
    .mit-b2b-cta-container {
        padding: 14px 12px !important;
        margin: 0 0 14px 0 !important;
        border-radius: 8px !important;
    }

    .mit-b2b-action-row {
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .mit-btn-quote,
    .mit-btn-whatsapp {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 13.5px !important;
        justify-content: center !important;
        flex: none !important;
    }

    .mit-b2b-trust-badges {
        flex-direction: column !important;
        gap: 6px !important;
        padding-top: 8px !important;
    }

    .mit-badge-item {
        font-size: 11.5px !important;
    }

    /* Mobile Tabs Navigation */
    .single-product div.product .woocommerce-tabs.wc-tabs-wrapper {
        margin-top: 20px !important;
        margin-bottom: 24px !important;
        border-radius: 8px !important;
    }

    .single-product .woocommerce-tabs ul.tabs {
        padding: 6px !important;
        gap: 6px !important;
    }

    .single-product .woocommerce-tabs ul.tabs li a {
        padding: 8px 14px !important;
        font-size: 13px !important;
        border-radius: 5px !important;
    }

    .single-product .woocommerce-Tabs-panel {
        padding: 16px 14px !important;
    }

    .single-product .woocommerce-Tabs-panel h3 {
        font-size: 15px !important;
        margin: 16px 0 6px 0 !important;
    }

    .single-product .woocommerce-Tabs-panel p,
    .single-product .woocommerce-Tabs-panel ul li {
        font-size: 13px !important;
        line-height: 1.55 !important;
    }

    /* Mobile Specifications Table */
    .mit-table-responsive {
        margin: 10px 0 16px 0 !important;
        border-radius: 6px !important;
    }

    .mit-table-scroll-hint {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 10px !important;
        background: #f0fdf4 !important;
        border-bottom: 1px solid #dcfce7 !important;
        font-size: 11px !important;
        color: #15803d !important;
        font-weight: 600 !important;
    }

    .single-product .woocommerce-Tabs-panel table.table-specs,
    .single-product .woocommerce-Tabs-panel .mit-table-responsive table {
        min-width: 440px !important;
        font-size: 12px !important;
    }

    .single-product .woocommerce-Tabs-panel table.table-specs th,
    .single-product .woocommerce-Tabs-panel .mit-table-responsive table th {
        font-size: 11.5px !important;
        padding: 8px 10px !important;
    }

    .single-product .woocommerce-Tabs-panel table.table-specs td,
    .single-product .woocommerce-Tabs-panel .mit-table-responsive table td {
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    .single-product .woocommerce-Tabs-panel table.table-specs td:first-child,
    .single-product .woocommerce-Tabs-panel .mit-table-responsive table td:first-child {
        min-width: 130px !important;
        width: 38% !important;
    }

    .single-product .woocommerce-Tabs-panel table.table-specs td:last-child,
    .single-product .woocommerce-Tabs-panel .mit-table-responsive table td:last-child {
        min-width: 200px !important;
        width: 62% !important;
    }

    /* Mobile Attributes Table */
    .single-product .woocommerce-Tabs-panel table.woocommerce-product-attributes {
        font-size: 12px !important;
        margin: 10px 0 !important;
    }

    .single-product .woocommerce-Tabs-panel table.woocommerce-product-attributes th {
        font-size: 11.5px !important;
        padding: 8px 10px !important;
        width: 36% !important;
    }

    .single-product .woocommerce-Tabs-panel table.woocommerce-product-attributes td {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    /* Mobile Related Products */
    .single-product div.product .related.products {
        margin-top: 24px !important;
        margin-bottom: 20px !important;
    }

    .single-product .related.products > h2 {
        font-size: 17px !important;
        margin-bottom: 12px !important;
    }

    .single-product .related.products ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .single-product .related.products .mit-product-card__image-wrap {
        height: 110px !important;
        padding: 8px !important;
    }

    .single-product .related.products .mit-product-card__image {
        max-height: 94px !important;
    }

    .single-product .related.products .mit-product-card__body {
        padding: 8px 10px 10px !important;
    }

    .single-product .related.products .mit-product-card__title {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    /* Mobile RFQ Form */
    .single-product div.product .mit-product-rfq-wrap {
        margin-top: 20px !important;
        margin-bottom: 16px !important;
    }

    .mit-product-rfq-card {
        padding: 16px 14px !important;
        border-radius: 8px !important;
    }

    .mit-rfq-header h2 {
        font-size: 18px !important;
    }

    .mit-rfq-header p {
        font-size: 12.5px !important;
        line-height: 1.5 !important;
    }

    .mit-rfq-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .mit-form-group.full-width {
        grid-column: span 1 !important;
    }

    .mit-form-group label {
        font-size: 12px !important;
    }

    /* 16px font size prevents iOS Safari automatic page zoom */
    .mit-form-group input,
    .mit-form-group textarea {
        padding: 10px 12px !important;
        font-size: 16px !important;
    }

    .mit-rfq-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        font-size: 14px !important;
    }
}

/* --------------------------------------------------------------------------
   11. SMALL MOBILE (Below 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    body.single-product .site-content,
    body.single-product #content,
    .single-product .site-content,
    .single-product #content,
    .single-product.woocommerce .site-content,
    .single-product.woocommerce #content {
        padding-top: 80px !important;
    }

    body.single-product .site-content > .ast-container,
    body.single-product #content > .ast-container,
    .single-product .site-content > .ast-container,
    .single-product #content > .ast-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .single-product .summary h1.product_title.entry-title {
        font-size: 19px !important;
    }

    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
        max-height: 220px;
    }

    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
        max-height: 200px;
    }

    .single-product .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .single-product .related.products .mit-product-card__image-wrap {
        height: 100px !important;
    }

    .single-product .related.products .mit-product-card__image {
        max-height: 85px !important;
    }
}

/* --------------------------------------------------------------------------
   12. ULTRA-COMPACT MOBILE (Below 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
    body.single-product .site-content,
    body.single-product #content,
    .single-product .site-content,
    .single-product #content,
    .single-product.woocommerce .site-content,
    .single-product.woocommerce #content {
        padding-top: 76px !important;
    }

    body.single-product .site-content > .ast-container,
    body.single-product #content > .ast-container,
    .single-product .site-content > .ast-container,
    .single-product #content > .ast-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .single-product .related.products ul.products {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .single-product .related.products .mit-product-card__image-wrap {
        height: 130px !important;
    }

    .single-product .related.products .mit-product-card__image {
        max-height: 110px !important;
    }
}