/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php */

/* =========================
   Products Hero / Cover
========================= */
.products-hero {
    position: relative;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.products-hero-overlay {
    width: 100%;
    background: linear-gradient(90deg, rgba(19, 56, 109, 0.65), rgba(19, 56, 109, 0.18));
    padding: 95px 0 75px;
}

.products-hero-content {
    max-width: 760px;
}

.products-hero-title {
    margin: 0;
    color: #fff;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}

/* =========================
   Breadcrumb Bar
========================= */
.products-breadcrumb-bar {
    background: #123552;
    padding: 13px 0;
}

.products-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    line-height: 1.7;
}

.products-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.products-breadcrumb span {
    color: rgba(255, 255, 255, .9);
}

/* =========================
   Products Page Layout
========================= */
.products-page-wrapper {
    padding: 34px 0 52px;
}

.products-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* =========================
   Sidebar
========================= */
.products-sidebar {
    width: 100%;
}

.modern-sidebar {
    background: #f8fafc;
    border: 1px solid #e6edf3;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.products-sidebar h3 {
    margin: 0;
    padding: 15px 18px;
    background: linear-gradient(135deg, #17386d, #214b8c);
    color: #fff;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.products-categories-list {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.products-categories-list li {
    margin-bottom: 6px;
}

.products-categories-list li:last-child {
    margin-bottom: 0;
}

.products-categories-list li a {
    display: block;
    padding: 11px 14px;
    text-decoration: none;
    color: #22324f;
    font-size: 14px;
    line-height: 1.55;
    border-radius: 0px;
    transition: all .2s ease;
}

.products-categories-list li.active a,
.products-categories-list li a:hover {
    background: #17386d;
    color: #fff;
}

/* =========================
   Content Top
========================= */
.products-content {
    min-width: 0;
}

.products-topbar {
    margin-bottom: 22px;
}

.products-page-title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    color: #172c4d;
}

.products-category-description {
    color: black;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.9;
    max-width: 850px;
}

.products-category-description p {
    margin: 0 0 10px;
}

.products-category-description p:last-child {
    margin-bottom: 0;
}

/* =========================
   Products Grid
========================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #e7edf3;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.product-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-card-thumb {
       display: flex;
    justify-content: center;
    align-items: center;
    align-items: center; 
    background: #f6f8fb;
}

.product-card-thumb img {
        object-fit: contain; /* مهم باش ما تتقصش الصورة */

    width: 80%;
    height: 180px;
    display: block;
}

.product-card-body {
    padding: 16px;
}

.product-card-body h2,
.product-card-body h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
    color: #172c4d;
}

.product-card-body p {
    margin: 0;
    color: #667487;
    font-size: 13px;
    line-height: 1.8;
}

.product-read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 13px;
    padding: 9px 13px;
    background: #17386d;
    color: #fff;
    border-radius: 0px;
    font-size: 12px;
    font-weight: 600;
}

/* =========================
   Single Product
========================= */
.single-product-wrapper {
    padding: 30px 0 52px;
}

.single-breadcrumb {
    margin-bottom: 18px;
}

.single-product-top {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 32px;
    margin-bottom: 32px;
    align-items: start;
}

.single-product-gallery {
    background: transparent;
}

.product-main-image {
    border: 1px solid #e6ecf2;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.product-main-image img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.thumb-item {
    border: 1px solid #e3e9ef;
    padding: 4px;
    border-radius: 0px;
    cursor: pointer;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.thumb-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.thumb-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.single-product-info {
    background: #fff;
    border: 1px solid #e7edf3;
    border-radius: 0px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.single-product-info h1 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.35;
    color: #172c4d;
    font-weight: 700;
}

.single-product-excerpt {
    color: #627083;
    font-size: 15px;
    line-height: 1.95;
    margin-bottom: 18px;
}

.product-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #17386d, #204b8f);
    color: #fff;
    text-decoration: none;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0px;
    box-shadow: 0 10px 20px rgba(23, 56, 109, 0.18);
}

.product-contact-btn:hover {
    color: #fff;
    opacity: .96;
}

/* =========================
   Tabs
========================= */
.product-tabs-wrapper {
    margin-top: 6px;
}

.product-tabs-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e3e9ef;
    flex-wrap: wrap;
}

.product-tabs-nav li {
    padding: 12px 18px;
    background: #eff4f8;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: #22324f;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    transition: all .2s ease;
}

.product-tabs-nav li.active {
    background: #17386d;
    color: #fff;
}

.product-tab-content {
    display: none;
    border: 1px solid #e3e9ef;
    border-top: 0;
    padding: 22px;
    background: #fff;
    line-height: 1.9;
    font-size: 15px;
    color: #516072;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.product-tab-content.active {
    display: block;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1100px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-product-top {
        grid-template-columns: 1fr;
    }

    .products-hero {
        min-height: 240px;
    }

    .products-hero-title {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-page-title {
        font-size: 21px;
    }

    .single-product-info h1 {
        font-size: 24px;
    }

    .products-hero {
        min-height: 190px;
    }

    .products-hero-overlay {
        padding: 60px 0 45px;
    }

    .products-hero-title {
        font-size: 28px;
    }

    .product-card-thumb img {
        height: 190px;
    }

    .products-breadcrumb {
        font-size: 12px;
    }
}


.related-products-block {
    margin-top: 38px;
}

.related-products-title {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.35;
    color: #172c4d;
    font-weight: 700;
}

.single-section-solution .product-contact-btn {
    background: linear-gradient(135deg, #0f766e, #159a8c);
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
}

.single-section-project .product-contact-btn {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.18);
}

.single-section-solution .product-tabs-nav li.active {
    background: #0f766e;
}

.single-section-project .product-tabs-nav li.active {
    background: #7c3aed;
}


.single-products-hero {
    min-height: 200px;
}

.single-products-hero .products-hero-overlay {
    padding: 70px 0 55px;
background: linear-gradient(100deg, rgba(19, 56, 109, 0.90), rgba(14, 28, 61, 0.90));
}

.single-products-hero .products-hero-title {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.single-hero-breadcrumb {
    font-size: 12px;
}

.single-product-wrapper {
    padding-top: 28px;
}

.single-product-top {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: start;
}

.single-product-gallery {
    max-width: 100%;
}

.product-main-image {
    padding: 10px;
    border-radius: 0px;
}

.product-main-image img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    border-radius: 10px;
}

.product-thumbs {
    gap: 8px;
}

.thumb-item img {
    width: 64px;
    height: 64px;
}

.single-product-info {
    padding: 20px;
}

.single-product-info h1 {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.single-product-excerpt {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.related-products-title {
    font-size: 20px;
}

@media (max-width: 767px) {
    .single-products-hero {
        min-height: 180px;
    }

    .single-products-hero .products-hero-overlay {
        padding: 48px 0 34px;
    }

    .single-products-hero .products-hero-title {
        font-size: 22px;
    }

    .product-main-image img {
        max-height: 320px;
    }
}


.product-tab-content iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 12px;
}

@media (max-width: 767px) {
    .product-tab-content iframe {
        min-height: 220px;
    }
}



@media (max-width: 767px) {
    .single-product-top {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .single-product-gallery {
        order: 1;
        width: 100%;
    }

    .single-product-info {
        order: 2;
        width: 100%;
        padding: 18px;
    }

    .single-product-info h1 {
        font-size: 22px;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .single-product-excerpt {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 14px;
    }

    .product-main-image img {
        max-height: 300px;
        object-fit: contain;
    }

    .product-thumbs {
        justify-content: flex-start;
        gap: 8px;
    }

    .thumb-item img {
        width: 58px;
        height: 58px;
    }
}

.my-products-section {
    width: 100%;
}

.my-products-section-title {
    margin: 0 0 24px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #BE1622;
    position: relative;
    padding-left: 34px;
}

html[dir="rtl"] .my-products-section-title {
    padding-left: 0;
    padding-right: 34px;
}

.my-products-section-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 3px;
    background: #BE1622;
    transform: translateY(-50%);
}

html[dir="rtl"] .my-products-section-title:before {
    left: auto;
    right: 0;
}

.my-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.my-products-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.my-products-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.my-product-cat-card {
    display: block;
    text-decoration: none;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.my-product-cat-image-wrap {
    position: relative;
    background: linear-gradient(180deg, #dfe6ee 0%, #d5dde7 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.my-product-cat-image-wrap img {
    
    object-fit: contain;
    transition: transform .35s ease;
}

.my-product-cat-card:hover .my-product-cat-image-wrap img {
    transform: scale(1.03);
}

.my-product-cat-no-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(180deg, #dfe6ee 0%, #d5dde7 100%);
}

.my-product-cat-title {
    background: #16356f;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    padding: 12px 8px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-product-cat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 53, 111, 0.78);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    opacity: 0;
    transition: opacity .3s ease;
}

.my-product-cat-card:hover .my-product-cat-overlay {
    opacity: 1;
}

.my-product-cat-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* 3 أسطر فقط */
    -webkit-box-orient: vertical;
    max-width: 100%;
}

.my-product-cat-btn {
    display: inline-block;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: all .25s ease;
}

.my-product-cat-card:hover .my-product-cat-btn {
    background: #fff;
    color: #16356f;
}

@media (max-width: 1200px) {
    .my-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 767px) {
    .my-products-section-title {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .my-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .my-product-cat-image-wrap,
    .my-product-cat-no-image {
        min-height: 170px;
    }

    .my-product-cat-title {
        font-size: 13px;
        min-height: 48px;
        padding: 10px 6px;
    }

    .my-product-cat-desc {
        font-size: 12px;
    }

    .my-product-cat-btn {
        font-size: 12px;
        padding: 7px 12px;
    }
}


.product-modal-open {
    overflow: hidden;
}

.product-inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.product-inquiry-modal.is-open {
    display: block;
}

.product-inquiry-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.product-inquiry-dialog {
    position: relative;
    width: min(92%, 720px);
    max-height: 86vh;
    overflow: auto;
    margin: 5vh auto 0;
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,.2);
}

.product-inquiry-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #22324f;
}

html[lang="ar"] .product-inquiry-close,
body.rtl .product-inquiry-close {
    right: auto;
    left: 12px;
}

.product-inquiry-title {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.35;
    color: #172c4d;
    font-weight: 700;
}

.product-inquiry-form-wrap {
    margin-top: 6px;
}

/* اختياري: أخفِ حقل اسم المنتج إذا أردته مخفيًا */
.metform-product-name-hidden {
    display: none !important;
}


.hide-product-field {
    display: none !important;
}


.gama-products-menu-wrap {
    width: 100%;
}

.gama-products-menu-title {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #16356f;
    position: relative;
    padding-left: 22px;
}

.gama-products-menu-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 2px;
    background: #16356f;
    transform: translateY(-50%);
}

html[dir="rtl"] .gama-products-menu-title {
    padding-left: 0;
    padding-right: 22px;
}

html[dir="rtl"] .gama-products-menu-title::before {
    left: auto;
    right: 0;
}

.gama-products-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.gama-products-menu-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gama-products-menu-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gama-products-menu-card {
    display: block;
    text-decoration: none;
    background: #fff;
    overflow: hidden;
    position: relative;
    border: 1px solid #e6e6e6;
}

.gama-products-menu-image-area {
    position: relative;
    min-height: 120px;
    background: linear-gradient(180deg, #dfe6ee 0%, #d3dce8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gama-products-menu-image-area img {
    max-width: 82%;
    max-height: 95px;
    object-fit: contain;
    transition: transform .3s ease;
}

.gama-products-menu-card:hover .gama-products-menu-image-area img {
    transform: scale(1.03);
}

.gama-products-menu-noimage {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(180deg, #dfe6ee 0%, #d3dce8 100%);
}

.gama-products-menu-name {
    background: #16356f;
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    padding: 8px 6px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gama-products-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 53, 111, 0.82);
    color: #fff;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transition: opacity .25s ease;
}

.gama-products-menu-card:hover .gama-products-menu-overlay {
    opacity: 1;
}

.gama-products-menu-desc {
    font-size: 10px;
    line-height: 1.45;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    max-width: 100%;
}

.gama-products-menu-btn {
    display: inline-block;
    padding: 5px 9px;
    border: 1px solid #fff;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    transition: all .25s ease;
}

.gama-products-menu-card:hover .gama-products-menu-btn {
    background: #fff;
    color: #16356f;
}

@media (max-width: 1200px) {
    .gama-products-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (max-width: 767px) {
    .gama-products-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gama-products-menu-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .gama-products-menu-image-area,
    .gama-products-menu-noimage {
        min-height: 95px;
    }

    .gama-products-menu-image-area img {
        max-height: 72px;
    }

    .gama-products-menu-name {
        font-size: 10px;
        min-height: 30px;
        padding: 6px 4px;
    }

    .gama-products-menu-desc {
        font-size: 9px;
    }

    .gama-products-menu-btn {
        font-size: 9px;
        padding: 4px 8px;
    }
}
