/**
 * Seaplast Products Catalog Page Drag & Drop Sections CSS
 * Styles for Products Archive Hero, Filter Sidebar, Product Cards Grid, & Pagination
 *
 * @package Seaplast
 */

/* -------------------------------------------------------------
 * COMMON CATALOG CONTAINER & TYPOGRAPHY
 * ------------------------------------------------------------- */
.sp-catalog-section {
    width: 100%;
    padding: 50px 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1a2533;
}

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

/* -------------------------------------------------------------
 * 1. PRODUCTS ARCHIVE HERO WIDGET
 * ------------------------------------------------------------- */
.sp-catalog-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #021428 0%, #06314d 60%, #00768C 100%);
    border-radius: 20px 20px 0 0;
    padding: 60px 50px 40px;
    color: #ffffff;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 991px) {
    .sp-catalog-hero-banner {
        grid-template-columns: 1fr;
        padding: 40px 24px;
    }
}

.sp-catalog-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px 0;
    color: #ffffff;
}

.sp-catalog-hero-title span.text-cyan {
    color: #00D2FF;
    display: block;
}

.sp-catalog-hero-sub {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 540px;
}

.sp-catalog-hero-visual {
    text-align: right;
}

.sp-catalog-hero-visual img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

/* Bottom 5-Icons Strip */
.sp-catalog-strip-bar {
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    padding: 20px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .sp-catalog-strip-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.sp-strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.sp-strip-icon {
    width: 32px;
    height: 32px;
    color: #00768C;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-strip-text {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
}

/* -------------------------------------------------------------
 * 2. PRODUCTS CATALOG FILTER & GRID WIDGET
 * ------------------------------------------------------------- */
.sp-catalog-main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

@media (max-width: 991px) {
    .sp-catalog-main-layout {
        grid-template-columns: 1fr;
    }
}

/* Filter Sidebar */
.sp-filter-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sp-filter-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}

.sp-filter-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    background: #004d5a;
    margin: -20px -20px 20px -20px;
    padding: 14px 20px;
    border-radius: 14px 14px 0 0;
    text-transform: uppercase;
}

.sp-filter-group-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0c1e35;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.sp-cat-filter-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sp-cat-filter-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sp-cat-filter-list li.active a, .sp-cat-filter-list li a:hover {
    background: #00768C;
    color: #ffffff;
}

.sp-color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.sp-swatch-btn {
    width: 28px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
}

.sp-alphabet-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 20px;
}

.sp-alpha-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}

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

.sp-help-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.sp-help-box h5 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0c1e35;
    margin: 0 0 4px 0;
}

.sp-help-box p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 12px 0;
}

/* Catalog Top Header */
.sp-catalog-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sp-catalog-results-count h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0c1e35;
    margin: 0 0 4px 0;
}

.sp-catalog-results-count span {
    font-size: 0.85rem;
    color: #64748b;
}

.sp-sort-select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

/* Product Grid Cards */
.sp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

@media (max-width: 1100px) {
    .sp-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 480px) {
    .sp-products-grid {
        grid-template-columns: 1fr;
    }
}

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

.sp-card-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.sp-card-img-box {
    position: relative;
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
}

.sp-card-img-box img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

.sp-card-product-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0c1e35;
    margin: 0 0 4px 0;
}

.sp-card-product-code {
    font-size: 0.78rem;
    font-weight: 700;
    color: #00768C;
    margin-bottom: 10px;
}

.sp-card-product-spec {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.sp-card-product-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #00768C;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sp-card-product-link:hover {
    color: #005a6b;
}

/* Pagination */
.sp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sp-page-num {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.sp-page-num.active, .sp-page-num:hover {
    background: #004d5a;
    color: #ffffff;
    border-color: #004d5a;
}
