/* ==========================================================================
   Trade Product Catalogue Styles — Find A Decorator
   ========================================================================== */

/* Hero Breadcrumb */
.hero-breadcrumb {
    align-items: center;
}

.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;
    color: #ffffff !important;
    opacity: 0.85;
    font-weight: 500;
    padding-left: 0;
    padding-right: 0.45rem;
}

.hero-breadcrumb-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.hero-breadcrumb-link:hover,
.hero-breadcrumb-link:focus {
    color: #facc15 !important;
    text-decoration: none;
}

/* Hero Search Bar */
.catalogue-hero-search {
    max-width: 580px;
}

.catalogue-hero-search-inner {
    background: #ffffff;
    border-radius: 9999px;
    padding: 6px 8px 6px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.catalogue-hero-search-icon {
    color: #94a3b8;
    font-size: 1rem;
    margin-right: 12px;
}

.catalogue-hero-search-input {
    border: none;
    outline: none;
    background: transparent;
    flex-grow: 1;
    font-size: 0.9375rem;
    color: #1e293b;
}

.catalogue-hero-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Hub Cards (Browse by Brand & Category) */
.catalogue-hub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.2s ease;
}

.catalogue-hub-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.catalogue-hub-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fef3c7;
    color: #b17e1e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.catalogue-hub-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalogue-hub-pill:hover,
.catalogue-hub-pill.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Filter Card */
.catalogue-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

/* Results Toolbar */
.catalogue-results-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 1.5rem;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
    color: inherit;
}

.product-card-image {
    aspect-ratio: 1;
    background: radial-gradient(circle at center, #ffffff 40%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.product-card-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.06);
}

.product-card-image .placeholder-icon {
    font-size: 3.5rem;
    color: #cbd5e1;
}

/* Badges */
.product-badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #b17e1e;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(177, 126, 30, 0.3);
    z-index: 2;
}

.product-badge-saving {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #059669;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    z-index: 2;
}

/* Product Card Body */
.product-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #b17e1e;
}

.product-category-pill {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
}

.product-title {
    font-size: 0.975rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.65rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.product-chip {
    font-size: 0.72rem;
    padding: 2px 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    font-weight: 500;
}

.product-colour-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    display: inline-block;
    flex-shrink: 0;
}

.product-pricing {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
}

.product-trade-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.product-rrp-price {
    font-size: 0.775rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-card-cta {
    font-size: 0.775rem;
    font-weight: 700;
    color: #b17e1e;
    transition: color 0.15s ease;
}

.product-card:hover .product-card-cta {
    color: #0f172a;
}

/* Empty State */
.catalogue-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* Pagination Overrides — Preventing Giant SVG Chevrons */
.catalogue-pagination nav {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.catalogue-pagination nav p.small {
    margin-bottom: 0;
}

.catalogue-pagination .pagination,
.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 0;
}

.catalogue-pagination .page-item .page-link,
.pagination .page-item .page-link {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
    transition: all 0.15s ease;
}

.catalogue-pagination .page-item .page-link:hover,
.pagination .page-item .page-link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.catalogue-pagination .page-item.active .page-link,
.pagination .page-item.active .page-link {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.catalogue-pagination svg,
.pagination svg,
nav[role="navigation"] svg {
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    max-height: 1rem !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

/* Detail Page */
.product-detail-container {
    padding: 2.5rem 0 4rem;
}

.product-detail-image-box {
    background: radial-gradient(circle at center, #ffffff 40%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.product-detail-image-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-spec-table th {
    width: 38%;
    color: #64748b;
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.product-spec-table td {
    font-weight: 600;
    color: #1e293b;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}
