/* ============================================================
   Carton Castle - Products Page Styles
============================================================ */

/* ---- Page Banner (duplicated so this file is standalone) ---- */
.page-banner {
    min-height: 45vh;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
    background:
        linear-gradient(rgba(26, 18, 13, 0.75), rgba(26, 18, 13, 0.75)),
        url('../images/wallpaper.png') center center / cover no-repeat;
}

.page-banner .breadcrumb {
    display: flex;
    gap: .5rem;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: var(--gold-light);
}

.page-banner .breadcrumb-item a {
    color: var(--gold-light);
    text-decoration: none;
}

.page-banner .breadcrumb-item a:hover {
    color: #fff;
}

.page-banner .breadcrumb-item.active {
    color: #fff;
}

/* ---- Product Filters ---- */
.product-filters {
    padding: 0 1rem;
}

.filter-btn {
    border: 2px solid var(--main);
    background: transparent;
    color: var(--main);
    padding: .5rem 1.25rem;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    transition: background .3s ease, color .3s ease;
}

.filter-btn:hover {
    background: rgba(205, 161, 100, 0.12);
}

.filter-btn.active {
    background: var(--main);
    color: #fff;
}

/* ---- Product Cards ---- */
.products .card {
    box-shadow: 0 6px 24px rgba(26, 18, 13, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.products .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(26, 18, 13, 0.12);
}

.products .card-img-top {
    height: 220px;
    object-fit: cover;
}

/* ---- CTA ---- */
.products-cta {
    background: linear-gradient(135deg, var(--dark) 0%, #2a1c12 100%);
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .page-banner {
        min-height: 35vh;
    }

    .filter-btn {
        font-size: .8rem;
        padding: .4rem 1rem;
    }
}

/* ============================================================
   Product Details Page
============================================================ */

.page-banner-sm {
    min-height: 30vh;
}

/* Hidden by default; JS reveals the matching product panel.
   Prevents a flash of all six panels stacked on load. */
.product-panel {
    display: none;
}

.product-panel.active-panel {
    display: block;
}

.detail-gallery img {
    height: 420px;
    object-fit: cover;
    border-radius: 1rem;
}

.detail-gallery .carousel-control-prev,
.detail-gallery .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 18, 13, 0.55);
    border-radius: 50%;
}

.size-table {
    background: #fff;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(26, 18, 13, 0.06);
}

.size-table thead {
    background: var(--dark);
    color: #fff;
}

.industry-chip {
    display: inline-flex;
    align-items: center;
    padding: .5rem 1rem;
    border-radius: 50px;
    background: rgba(205, 161, 100, 0.12);
    color: var(--text);
    font-weight: 600;
    font-size: .9rem;
}

@media (max-width: 767px) {
    .page-banner-sm {
        min-height: 25vh;
    }

    .detail-gallery img {
        height: 260px;
    }
}

/* ============================================================
   Industries Page
============================================================ */

.industry-img {
    height: 380px;
    border-radius: 1rem;
    background-size: cover;
    background-position: center;
}

.industry-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(205, 161, 100, 0.12);
    color: var(--main);
    font-size: 1.4rem;
}

.industry-row:not(:last-child) {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(169, 126, 84, 0.15);
}

.badge-link {
    display: inline-block;
    padding: .5rem 1.1rem;
    border-radius: 50px;
    background: rgba(205, 161, 100, 0.12);
    color: var(--text);
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: background .3s ease, color .3s ease;
}

.badge-link:hover {
    background: var(--main);
    color: #fff;
}

@media (max-width: 767px) {
    .industry-img {
        height: 240px;
    }
}

/* ============================================================
   Certifications Page
============================================================ */

.cert-detail-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 6px 24px rgba(26, 18, 13, 0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.cert-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(26, 18, 13, 0.12);
}

.cert-detail-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(205, 161, 100, 0.12);
    color: var(--main);
    font-size: 2rem;
}

.cert-detail-card h4 {
    color: var(--dark);
    font-weight: 600;
}

.cert-meta {
    text-align: start;
    font-size: .85rem;
    color: var(--text);
    background: rgba(205, 161, 100, 0.08);
    border-radius: .5rem;
    padding: .75rem 1rem;
    line-height: 1.9;
}

/* ============================================================
   Careers Page
============================================================ */

.why-card {
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 6px 24px rgba(26, 18, 13, 0.06);
}

.why-card h5 {
    color: var(--dark);
    font-weight: 600;
}

.benefit-chip {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: .75rem;
    background: #fff;
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(26, 18, 13, 0.05);
}

.benefit-chip i {
    color: var(--main);
}

.job-item {
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 6px 24px rgba(26, 18, 13, 0.06);
    margin-bottom: 1rem;
}

.job-item h5 {
    color: var(--dark);
    font-weight: 600;
}

.job-meta {
    color: var(--text);
    font-size: .9rem;
}

/* ---- Career application form feedback ---- */
.cf-feedback {
    padding: .75rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: .95rem;
}

.cf-feedback.text-success {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32 !important;
}

.cf-feedback.text-danger {
    background: rgba(211, 47, 47, 0.1);
    color: #c62828 !important;
}
