/**
 * Company Detail Page Styles
 * Matches the Shopping Stores design system (Deep Navy #00274D, Red #d52b1e, Pill-shaped buttons)
 *
 * @package ShoppingStores
 */

/* Base Page Wrapper */
.ss-company-detail-page {
    background-color: #fff;
    min-height: 50vh;
}

.ss-company-detail-page .ss-section-title {
    color: var(--ss-ink, #111827);
    letter-spacing: -0.03em;
    font-weight: 700;
}

/* Company Description / Prose */
.ss-company-prose {
    color: #334155;
    line-height: 1.85;
    font-size: 1.05rem;
}

.ss-company-prose p {
    margin-bottom: 1.25rem;
    color: inherit;
}

.ss-company-prose p:last-child {
    margin-bottom: 0;
}

.ss-company-prose a {
    color: #00274D;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.ss-company-prose a:hover {
    color: #d52b1e;
}

/* Product Listing (Unnumbered) */
.ss-products-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ss-product-item-wrap {
    transition: opacity 0.3s ease;
}

.ss-product-item {
    background: #fff;
    border: 1px solid var(--ss-line, #e2e8f0) !important;
    border-radius: 14px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ss-product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 39, 77, 0.08);
    border-color: #00274D !important;
}

.ss-product-thumb {
    width: 46px;
    height: 46px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.ss-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ss-product-icon {
    width: 46px;
    height: 46px;
    background: rgba(0, 39, 77, 0.06);
    color: #00274D;
    border-radius: 10px;
}

.ss-product-icon svg,
.ss-product-icon i {
    width: 20px;
    height: 20px;
    color: #00274D;
}

.ss-product-title a {
    color: var(--ss-ink, #111827);
    font-size: 1rem;
    transition: color 0.15s ease;
}

.ss-product-item:hover .ss-product-title a {
    color: #00274D;
}

.ss-product-desc {
    color: var(--ss-muted, #64748b);
    font-size: 0.85rem;
}

/* Product Action Button [ View ] - Pill shape matching ShoppingStores buttons */
.ss-product-action .btn-outline-primary {
    color: #00274D !important;
    border: 1.5px solid #00274D !important;
    background-color: transparent !important;
    border-radius: 3rem !important;
    padding: 0.45rem 1.4rem !important;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.25s ease;
}

.ss-product-action .btn-outline-primary:hover {
    color: #FFFFFF !important;
    background-color: #00274D !important;
    border-color: #00274D !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 39, 77, 0.25);
}

/* Load More Button - Matches header .shop-btn */
.js-company-load-more {
    background: #00274D !important;
    background-color: #00274D !important;
    border: none !important;
    color: #FFFFFF !important;
    border-radius: 3rem !important;
    padding: 12px 36px !important;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 39, 77, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.js-company-load-more:hover {
    background: #001830 !important;
    background-color: #001830 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 39, 77, 0.3);
}

.js-company-load-more i {
    transition: transform 0.2s ease;
}

.js-company-load-more:hover i {
    transform: translateY(2px);
}

/* Sidebar Company Info Card */
.ss-company-info-card {
    background: #fff;
    border: 1px solid var(--ss-line, #e2e8f0) !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 24px rgba(0, 39, 77, 0.06);
}

.ss-info-icon-badge {
    width: 38px;
    height: 38px;
    background: rgba(0, 39, 77, 0.08);
    color: #00274D;
    border-radius: 50%;
}

.ss-info-icon-badge i {
    color: #00274D !important;
}

.ss-info-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00274D;
}

.ss-info-icon svg,
.ss-info-icon i {
    width: 18px;
    height: 18px;
    color: #00274D !important;
}

.ss-info-label {
    color: var(--ss-muted, #64748b);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.ss-info-value {
    color: var(--ss-ink, #111827);
    font-size: 0.95rem;
}

.ss-info-value a {
    color: var(--ss-ink, #111827);
    transition: color 0.15s ease;
}

.ss-info-value a:hover {
    color: #00274D;
}

/* Visit Website Button - Exact match with header-vendor-btn .shop-btn */
.ss-company-info-card .btn-primary,
.ss-company-detail-page .btn-primary {
    background: #00274D !important;
    background-color: #00274D !important;
    border: none !important;
    color: #FFFFFF !important;
    border-radius: 3rem !important;
    padding: 13px 28px !important;
    font-family: "Inter", sans-serif;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 39, 77, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ss-company-info-card .btn-primary:hover,
.ss-company-detail-page .btn-primary:hover {
    background: #001830 !important;
    background-color: #001830 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 39, 77, 0.32);
}

.ss-company-info-card .btn-primary i,
.ss-company-info-card .btn-primary svg {
    transition: transform 0.25s ease;
}

.ss-company-info-card .btn-primary:hover i,
.ss-company-info-card .btn-primary:hover svg {
    transform: translateX(4px);
}

/* Social Media Buttons */
.ss-company-info-card .btn-outline-secondary {
    color: #00274D;
    border-color: rgba(0, 39, 77, 0.2);
    transition: all 0.2s ease;
}

.ss-company-info-card .btn-outline-secondary:hover {
    background-color: #00274D;
    border-color: #00274D;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Product Count Badge */
.ss-product-badge {
    background: rgba(0, 39, 77, 0.06);
    color: #00274D;
    border: 1px solid rgba(0, 39, 77, 0.15);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .ss-company-info-card {
        margin-top: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .ss-product-item {
        padding: 0.85rem !important;
    }

    .ss-product-title {
        font-size: 0.95rem !important;
    }

    .ss-product-thumb,
    .ss-product-icon {
        width: 40px;
        height: 40px;
    }

    .ss-product-action .btn-outline-primary {
        padding: 0.35rem 0.9rem !important;
        font-size: 0.8rem !important;
    }
}

/* ==========================================================================
   Business Cards Listing (/businesses/ & search directory)
   ========================================================================== */

.ss-business-card {
    background: #ffffff;
    border: 1px solid rgba(0, 39, 77, 0.08) !important;
    border-radius: 16px !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 4px 12px rgba(0, 39, 77, 0.04) !important;
}

.ss-business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 39, 77, 0.09) !important;
    border-color: rgba(0, 39, 77, 0.18) !important;
}

.ss-business-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(0, 39, 77, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-business-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ss-business-logo-fallback {
    color: #00274D;
    font-size: 1.35rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 39, 77, 0.04);
}

.ss-badge-location {
    background: rgba(0, 39, 77, 0.05);
    color: #00274D;
    border: 1px solid rgba(0, 39, 77, 0.1);
    font-size: 0.72rem;
    max-width: 180px;
}

.ss-badge-location i {
    color: #d97706;
}

.ss-business-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

.ss-business-title a {
    color: #111827;
    transition: color 0.15s ease;
}

.ss-business-title a:hover {
    color: #00274D;
}

.ss-badge-product {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
}

.ss-business-excerpt {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ss-business-btn {
    border-color: #00274D !important;
    color: #00274D !important;
    border-radius: 3rem !important;
    font-size: 0.82rem !important;
    padding: 0.4rem 1.1rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.ss-business-btn:hover {
    background-color: #00274D !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 39, 77, 0.2) !important;
}

.ss-business-btn:hover .transition-arrow {
    transform: translateX(4px);
}

.transition-arrow {
    transition: transform 0.2s ease;
}

.ss-website-quicklink {
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.ss-website-quicklink:hover {
    background: #00274D;
    color: #ffffff !important;
    border-color: #00274D;
}

