/**
 * Seaplast Product Page Sections CSS
 * Complete styling for Single Product UI Sections matching web.pdf:
 * 1. Product Hero Showcase (Gallery + Code + Bullet Highlights)
 * 2. Dimensions Matrix & Technical Parameters (Metric/Imperial System)
 * 3. Product Colour Options Swatch Grid
 * 4. Product Features & Engineering Capabilities (12 Standards Matrix)
 * 5. Product End-Use Industry Applications (8 Sectors)
 * 6. Product Safety Guidelines (3 Visual Alert Cards + Drain Assembly)
 * 7. Product Marking & Tracking Techniques (6 Decoration Methods)
 * 8. Transportation & Logistics Solutions (Domestic & Export Freight Matrix)
 *
 * @package Seaplast
 */

/* -------------------------------------------------------------
 * COMMON CONTAINER & TYPOGRAPHY
 * ------------------------------------------------------------- */
.sp-product-section {
    width: 100%;
    padding: 48px 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1a2533;
    border-bottom: 1px solid #f1f5f9;
}

.sp-product-section:last-child {
    border-bottom: none;
}

.sp-product-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.sp-section-heading {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #00768C;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-heading-tag {
    font-size: 0.75rem;
    font-weight: 700;
    background: #e0f2fe;
    color: #00768C;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

/* -------------------------------------------------------------
 * 1. PRODUCT HERO WIDGET
 * ------------------------------------------------------------- */
.sp-product-hero-wrapper {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    align-items: start;
}

@media (max-width: 991px) {
    .sp-product-hero-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
    }
}

.sp-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sp-product-main-img-box {
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.sp-product-main-img-box img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sp-product-main-img-box:hover img {
    transform: scale(1.03);
}

.sp-isometric-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 118, 140, 0.08);
    color: #00768C;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 118, 140, 0.2);
}

.sp-product-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sp-thumb-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 80px;
}

.sp-thumb-item:hover,
.sp-thumb-item.active {
    border-color: #00768C;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 118, 140, 0.12);
}

.sp-thumb-item img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    margin-bottom: 4px;
}

.sp-thumb-caption {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.2;
}

.sp-product-badge-cat {
    display: inline-block;
    background: #00768C;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.sp-product-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0c1e35;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.sp-product-code {
    font-size: 1rem;
    font-weight: 700;
    color: #00768C;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.sp-product-bullet-highlights {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.sp-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-bullet-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-bullet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #00768C;
    flex-shrink: 0;
}

.sp-bullet-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.sp-product-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 28px;
}

.sp-product-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sp-btn-primary {
    background: #00768C;
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 2px solid #00768C;
}

.sp-btn-primary:hover {
    background: #005a6b;
    border-color: #005a6b;
    color: #ffffff;
    transform: translateY(-2px);
}

.sp-btn-secondary {
    background: transparent;
    color: #00768C;
    border: 2px solid #00768C;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sp-btn-secondary:hover {
    background: #00768C;
    color: #ffffff;
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * 2. SPECS & DIMENSIONS MATRIX WIDGET
 * ------------------------------------------------------------- */
.sp-specs-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.sp-unit-toggle {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.sp-unit-btn {
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-unit-btn.active,
.sp-unit-btn:hover {
    background: #00768C;
    color: #ffffff;
}

.sp-specs-tables-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sp-table-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f6;
}

.sp-table-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #00768C;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sp-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.sp-specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.sp-specs-table th {
    background: #f1f5f9;
    color: #00768C;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}

.sp-specs-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.sp-category-cell {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    font-weight: 800;
    color: #0f172a;
}

.sp-sys-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.sp-sys-metric {
    background: #e0f2fe;
    color: #0369a1;
}

.sp-sys-imperial {
    background: #fef3c7;
    color: #92400e;
}

.sp-specs-table tr.highlight-row td {
    background: #f0fdf4;
    font-weight: 800;
    color: #14532d;
}

.sp-val-metric {
    font-weight: 700;
    color: #0369a1;
}

.sp-val-imperial {
    font-weight: 700;
    color: #92400e;
}

.sp-dimension-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* -------------------------------------------------------------
 * 3. PRODUCT COLOUR OPTIONS WIDGET
 * ------------------------------------------------------------- */
.sp-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.sp-color-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    cursor: pointer;
}

.sp-color-card:hover,
.sp-color-card.selected {
    border-color: #00768C;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 118, 140, 0.12);
}

.sp-color-swatch-box {
    width: 52px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.06);
}

.sp-color-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
}

.sp-color-code {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.sp-colors-subtext {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #64748b;
}

/* -------------------------------------------------------------
 * 4. PRODUCT FEATURES & ENGINEERING STANDARDS (12 CARDS)
 * ------------------------------------------------------------- */
.sp-features-grid-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .sp-features-grid-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .sp-features-grid-matrix {
        grid-template-columns: 1fr;
    }
}

.sp-feature-matrix-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-feature-matrix-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 118, 140, 0.08);
    border-color: #00768C;
}

.sp-feature-symbol-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #00768C;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-feature-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.sp-feature-card-benefit {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* -------------------------------------------------------------
 * 5. PRODUCT END-USE INDUSTRY APPLICATIONS (8 CARDS)
 * ------------------------------------------------------------- */
.sp-product-industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .sp-product-industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .sp-product-industries-grid {
        grid-template-columns: 1fr;
    }
}

.sp-product-industry-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-product-industry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 118, 140, 0.08);
    border-color: #00768C;
}

.sp-industry-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f0fdf4;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-industry-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.sp-industry-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* -------------------------------------------------------------
 * 6. PRODUCT SAFETY GUIDELINES (3 CARDS)
 * ------------------------------------------------------------- */
.sp-safety-lead {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 24px;
    max-width: 800px;
}

.sp-safety-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 850px) {
    .sp-safety-cards-grid {
        grid-template-columns: 1fr;
    }
}

.sp-safety-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.sp-safety-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sp-safety-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.sp-safety-pill.danger {
    background: #fee2e2;
    color: #dc2626;
}

.sp-safety-pill.success {
    background: #dcfce7;
    color: #16a34a;
}

.sp-safety-pill.primary {
    background: #e0f2fe;
    color: #00768C;
}

.sp-safety-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-safety-icon.danger {
    background: #fef2f2;
    color: #dc2626;
}

.sp-safety-icon.success {
    background: #f0fdf4;
    color: #16a34a;
}

.sp-safety-icon.primary {
    background: #f0f9ff;
    color: #00768C;
}

.sp-safety-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.sp-safety-card-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.sp-safety-callout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sp-safety-callout.danger-callout {
    background: #fef2f2;
    color: #dc2626;
    border: 1px dashed #fca5a5;
}

.sp-safety-callout.success-callout {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px dashed #86efac;
}

.sp-drain-assembly-diagram {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.sp-assembly-step {
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.sp-assembly-step.highlight {
    background: #00768C;
    color: #ffffff;
    border-color: #00768C;
}

.sp-assembly-arrow {
    color: #00768C;
    font-weight: 900;
}

/* -------------------------------------------------------------
 * 7. PRODUCT MARKING & TRACKING TECHNIQUES (6 CARDS)
 * ------------------------------------------------------------- */
.sp-marking-lead {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 24px;
}

.sp-marking-techniques-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .sp-marking-techniques-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .sp-marking-techniques-grid {
        grid-template-columns: 1fr;
    }
}

.sp-marking-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-marking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 118, 140, 0.08);
    border-color: #00768C;
}

.sp-marking-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.sp-marking-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00768C;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-marking-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.sp-marking-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.sp-marking-tags {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00768C;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

/* -------------------------------------------------------------
 * 8. TRANSPORTATION & LOGISTICS MATRIX TABLE
 * ------------------------------------------------------------- */
.sp-transport-lead {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 24px;
}

.sp-transport-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.sp-transport-matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.sp-transport-matrix-table th {
    background: #f1f5f9;
    color: #00768C;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 16px;
    border-bottom: 2px solid #cbd5e1;
}

.sp-transport-matrix-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.sp-region-cell {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    vertical-align: middle;
}

.sp-region-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-size: 0.95rem;
}

.sp-mode-cell {
    vertical-align: middle;
}

.sp-mode-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #00768C;
}

.sp-qty-bold {
    font-weight: 800;
    color: #0f172a;
}

.sp-qty-bold.highlight {
    color: #00768C;
    background: #f0f9ff;
    border-radius: 4px;
}

.sp-coverage-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.sp-coverage-badge.global {
    background: #dcfce7;
    color: #15803d;
}

.sp-row-divider td {
    border-top: 2px solid #cbd5e1;
}
