/* Bread House Products Elementor — exact HTML baseline, scoped for Elementor safety */
@font-face {
    font-family: 'beIN Normal';
    src: local('beIN Normal'), local('Bein Normal'), local('beIN-Normal'), local('BElN Normal');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.bhp-products-page,
.bhp-products-page *,
.bhp-products-page *::before,
.bhp-products-page *::after,
.bhp-products-page input,
.bhp-products-page textarea,
.bhp-products-page button,
.bhp-products-page select {
    font-family: 'beIN Normal', 'Cairo', sans-serif !important;
    box-sizing: border-box;
}

.bhp-products-page {
    --mb-gold: #DFCAA0;
    --mb-gold-dark: #CBB482;
    --mb-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    color: #474747;
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    background-color: #faf7f5;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Products Hero Banner */
.bhp-products-page .products-hero {
    position: relative;
    height: 620px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-bottom: 50px;
    border-bottom: 2px solid var(--mb-gold);
}

.bhp-products-page .products-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(28, 24, 21, 0.8), rgba(28, 24, 21, 0.95));
}

.bhp-products-page .products-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 24px 35px;
    background: rgba(28, 24, 21, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(223, 202, 160, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin: 0 24px;
}

@media (max-width: 768px) {
    .bhp-products-page .products-hero {
        height: 520px;
        padding-bottom: 25px;
    }
    .bhp-products-page .products-hero-content {
        padding: 16px 20px;
        margin: 0 12px;
    }
}

.bhp-products-page .hero-badge {
    color: var(--mb-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    border: 1px solid var(--mb-gold);
    padding: 6px 20px;
    border-radius: 100px;
}

.bhp-products-page .products-hero h1 {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.bhp-products-page .products-hero p {
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Categories / Filter Section */
.bhp-products-page .filters-container {
    padding: 50px 24px 30px 24px;
    background-color: #faf7f5;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .bhp-products-page .filters-container {
        position: relative;
        top: 0 !important;
        padding: 30px 16px 20px 16px;
    }
}

.bhp-products-page .filters-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.bhp-products-page .filter-btn {
    background: #ffffff;
    border: 1px solid rgba(71, 71, 71, 0.12);
    color: #474747;
    padding: 10px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.02);
}

.bhp-products-page .filter-btn:hover,
.bhp-products-page .filter-btn.active {
    background: #474747;
    border-color: #474747;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(71, 71, 71, 0.15);
}

/* Products Grid */
.bhp-products-page .products-section {
    padding: 40px 24px 100px 24px;
    background-color: #faf7f5;
}

.bhp-products-page .products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bhp-products-page .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

/* Premium Card Layout */
.bhp-products-page .premium-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid rgba(71, 71, 71, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bhp-products-page .premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(71, 71, 71, 0.08);
    border-color: var(--mb-gold);
}

.bhp-products-page .card-img-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #faf7f5;
}

.bhp-products-page .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bhp-products-page .premium-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.bhp-products-page .card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--mb-gold);
    color: #474747;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bhp-products-page .card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: right;
}

.bhp-products-page .card-body h3 {
    font-size: 21px;
    font-weight: 700;
    color: #474747;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.bhp-products-page .card-body p {
    font-size: 13.5px;
    line-height: 1.7;
    color: #666666;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.bhp-products-page .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.bhp-products-page .card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--mb-gold-dark);
}

.bhp-products-page .card-btn {
    background-color: #474747;
    color: #ffffff;
    border: none;
    padding: 9px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(71, 71, 71, 0.1);
}

.bhp-products-page .card-btn:hover {
    background-color: var(--mb-gold);
    color: #474747;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(223, 202, 160, 0.3);
}

/* QUICK ORDER MODAL */
.bhp-products-page .order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bhp-products-page .order-modal.active {
    opacity: 1;
    pointer-events: all;
}

.bhp-products-page .modal-content {
    background: #ffffff;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    box-sizing: border-box;
    position: relative;
    text-align: right;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(223, 202, 160, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.bhp-products-page .order-modal.active .modal-content {
    transform: scale(1);
}

.bhp-products-page .modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 5px;
}

.bhp-products-page .modal-close:hover { color: #474747; }

.bhp-products-page .modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #474747;
    margin: 0 0 10px 0;
}

.bhp-products-page .modal-subtitle {
    font-size: 13.5px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.bhp-products-page .form-group { margin-bottom: 20px; }

.bhp-products-page .form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #474747;
    margin-bottom: 8px;
}

.bhp-products-page .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #faf7f5;
}

.bhp-products-page .form-input:focus {
    border-color: var(--mb-gold);
    background-color: #ffffff;
}

.bhp-products-page .modal-submit-btn {
    background-color: #474747;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(71, 71, 71, 0.15);
}

.bhp-products-page .modal-submit-btn:hover {
    background-color: var(--mb-gold);
    color: #474747;
    box-shadow: 0 6px 20px rgba(223, 202, 160, 0.3);
}

.bhp-products-page .modal-success-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.bhp-products-page .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
}

/* Prevent Elementor/theme wrappers from changing the exact page geometry */
.elementor-widget-bhpp-products-page,
.elementor-widget-bhpp-products-page > .elementor-widget-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}
