/* ==================================================
   PUBLIC COMPANY PAGE — SAFE & ISOLATED (FINAL)
   Scope:
   ✔ Company layout & cards
   ✔ Product listing
   ✔ Sponsored section
   ❌ NO body / html rules
   ❌ NO header rules
   ❌ NO global modal rules
================================================== */

/* ================= PAGE WRAPPER ================= */
.company-page {
    margin: 24px auto;
    max-width: 1200px;
    padding: 0 16px;
}

/* ================= HERO ================= */
.company-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.company-logo {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.company-meta {
    flex: 1;
}

.company-meta h1 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #111827;
}

.company-location {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}

.company-website {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.company-website:hover {
    text-decoration: underline;
}

.company-meta p {
    margin: 0 0 14px;
    line-height: 1.6;
    color: #374151;
}

/* ================= BUTTONS ================= */
.company-inquiry-btn,
.product-inquiry-btn {
    border: none;
    cursor: pointer;
    appearance: none;
    outline: none;
    font-family: inherit;
}

.company-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.company-inquiry-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.product-inquiry-btn {
    display: block;
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.2s ease;
}

.product-inquiry-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Keyboard accessibility */
.company-inquiry-btn:focus-visible,
.product-inquiry-btn:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

/* ================= GRID ================= */
.company-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* ================= PRODUCTS ================= */
.products-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.products-section h2 {
    margin-bottom: 16px;
    font-size: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
    color: #111827;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

/* ================= PRODUCT CARD ================= */
.product-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-card:hover img {
    transform: scale(1.06);
}

.product-card h3 {
    font-size: 15px;
    margin: 10px 6px 4px;
    text-align: center;
    color: #111827;
}

.product-description {
    font-size: 13px;
    color: #4b5563;
    margin: 4px 6px 10px;
    line-height: 1.4;
    text-align: center;
}

.product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px;
}

.product-view-btn {
    display: block;
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.product-view-btn:hover {
    background: #e5e7eb;
}

/* ================= SPONSORED ================= */
.sponsored-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.sponsored-section h2 {
    margin-bottom: 16px;
    font-size: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
    color: #111827;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .company-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .company-hero {
        flex-direction: column;
        text-align: center;
    }

    .company-logo {
        margin: 0 auto;
    }

    .company-meta h1 {
        font-size: 24px;
    }

    .company-inquiry-btn {
        margin: 0 auto;
    }
}
