/* =====================================================
   HOSTY STORE V1
===================================================== */

:root{
    --hosty-primary:#0d6efd;
    --hosty-dark:#222;
    --hosty-border:#ececec;
    --hosty-bg:#ffffff;
    --hosty-radius:10px;
    --hosty-shadow:0 10px 25px rgba(0,0,0,.08);
}

#hosty-shop{
    padding:40px 0;
}

.woocommerce ul.products{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:25px;
    margin:0;
    padding:0;
    list-style:none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after{
    display:none;
}

.hosty-product-item{
    margin:0 !important;
    width:auto !important;
    float:none !important;
}

.hosty-product-card{

    background:#fff;

    border:3px solid var(--hosty-border);

    border-radius:var(--hosty-radius);

    overflow:hidden;

    transition:.3s;

    height:100%;

    display:flex;

    flex-direction:column;

}

.hosty-product-card:hover{

    transform:translateY(-6px);

    box-shadow:var(--hosty-shadow);

}

.hosty-product-image{

    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;

    background:#fff;

    height:250px;

    padding:5px;

    overflow:hidden;

}

.hosty-product-image img{

    max-width:100%;
    max-height:300px;

    width:auto;
    height:auto;

    object-fit:contain;

    transition:.35s;

}

.hosty-product-card:hover img{

    transform:scale(1.05);

}

.hosty-sale-badge{

    position:absolute;

    top:15px;

    left:15px;

    background:#dc3545;

    color:#fff;

    padding:6px 12px;

    border-radius:30px;

    font-size:13px;

    z-index:2;

}

.hosty-product-body{

    padding:5px;

    display:flex;

    flex-direction:column;

    flex:1;

}

.hosty-product-title{

    margin:8px 0 15px;

    font-size:20px;

    line-height:1.5;

    font-weight:700;

}

.hosty-product-title a{

    color:#222;

    text-decoration:none;

}

.hosty-product-title a:hover{

    color:var(--hosty-primary);

}

.hosty-product-rating{

    margin:10px 0 5px;

}

.hosty-product-price{

    font-size:20px;

    font-weight:700;

    color:var(--hosty-primary);

    margin:0px;

}
.hosty-product-price del{

    display:block;

    font-size:16px;

    color:#888;

    margin-bottom:6px;

}

.hosty-product-price ins{

    text-decoration:none;

}

.hosty-product-actions{

    margin-top:auto;

    display:flex;

    gap:4px;

}

.hosty-view-btn{

    flex:1;

    height:45px;

    border-radius:10px;

    border:1px solid var(--hosty-primary);

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    color:var(--hosty-primary);

    transition:.3s;

}

.hosty-view-btn:hover{

    background:var(--hosty-primary);

    color:#fff;

}

.hosty-product-actions .button{

    flex:1;

    margin:0 !important;

    border-radius:10px !important;

    height:45px;

    display:flex !important;

    align-items:center;

    justify-content:center;

    background:var(--hosty-primary) !important;

    color:#fff !important;

    text-align:center;

}

.hosty-product-actions .button:hover{

    opacity:.9;

}

@media(max-width:768px){

    .woocommerce ul.products{

        grid-template-columns:repeat(2,1fr);

        gap:15px;

    }

    .hosty-product-body{

        padding:15px;

    }

    .hosty-product-title{

        font-size:16px;

    }

    .hosty-product-price{

        font-size:18px;

    }

    .hosty-product-actions{

        flex-direction:column;

    }

}

.hosty-product-card del,
.hosty-product-card .price del,
.hosty-product-card .woocommerce-Price-amount + del{
    display:none !important;
}

.hosty-product-card ins{
    text-decoration:none !important;
    background:none !important;
}

/* ===========================
   Tablet
=========================== */

@media (max-width:991px){

    .woocommerce ul.products{

        grid-template-columns:repeat(3,1fr);

        gap:15px;

    }

}


/* ===========================
   Mobile
=========================== */

@media (max-width:767px){
    .hosty-product-item{
    min-width:0 !important;
}

.hosty-product-card{
    width:100%;
}

    .woocommerce ul.products{

        grid-template-columns:repeat(2,1fr);

        gap:12px;
        

    }

    .hosty-product-image{

        height:150px;

        padding:10px;

    }

    .hosty-product-image img{

        max-height:200px;

    }

    .hosty-product-body{

        padding:0px;

    }

    .hosty-product-title{

        font-size:15px;

        line-height:1.4;

        min-height:42px;

        margin:8px 0;

    }

    .hosty-product-price{

        font-size:24px;

        margin:10px 0 15px;

    }

    .hosty-product-actions{

        gap:8px;

    }

    .hosty-product-actions .button,
    .hosty-view-btn{

        height:38px;

        font-size:15px;

    }

}

/* ===========================
   Small Mobile
=========================== */

@media (max-width:480px){

    .woocommerce ul.products{

        grid-template-columns:repeat(2,1fr);

        gap:10px;

    }

}
/*====================================================
HOSTY TOOLBAR
====================================================*/

.hosty-toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

    padding:15px 20px;

    background:#fff;

    border:1px solid #ececec;

    border-radius:12px;

}

.hosty-count{

    font-size:16px;

    color:#555;

}

.hosty-count strong{

    color:#0d6efd;

    font-size:20px;

    margin:0 5px;

}

.hosty-toolbar-right .woocommerce-ordering{

    margin:0;

}

.hosty-toolbar-right select{

    min-width:220px;

    height:45px;

    border:1px solid #ddd;

    border-radius:10px;

    padding:0 15px;

    cursor:pointer;

}

/*=========================
Responsive
=========================*/

@media(max-width:767px){

    .hosty-toolbar{

        flex-direction:column;

        gap:15px;

        align-items:stretch;

    }

    .hosty-toolbar-right select{

        width:100%;

    }

    .hosty-count{

        text-align:center;

    }

}
/*====================================================
HOSTY PAGINATION
====================================================*/

.hosty-pagination,
.navigation.pagination{
    margin:40px 0;
}

.navigation.pagination .nav-links{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    flex-wrap:wrap;

}

.navigation.pagination a,
.navigation.pagination span{

    width:45px;

    height:45px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:10px;

    border:1px solid #ddd;

    background:#fff;

    color:#333;

    text-decoration:none;

    transition:.25s;

    font-weight:600;

}

.navigation.pagination a:hover{

    background:#0d6efd;

    color:#fff;

    border-color:#0d6efd;

}

.navigation.pagination .current{

    background:#0d6efd;

    color:#fff;

    border-color:#0d6efd;

}
/*====================================================
HOSTY CATEGORY FILTER
====================================================*/

.hosty-category-filter{

    display:flex;

    gap:12px;

    overflow-x:auto;

    padding-bottom:8px;

    margin-bottom:30px;

    scrollbar-width:none;

}

.hosty-category-filter::-webkit-scrollbar{

    display:none;

}

.hosty-filter-item{

    white-space:nowrap;

    padding:12px 22px;

    background:#fff;

    border:1px solid #e5e5e5;

    border-radius:50px;

    text-decoration:none;

    color:#333;

    font-weight:600;

    transition:.25s;

    flex-shrink:0;

}

.hosty-filter-item:hover{

    background:#0d6efd;

    color:#fff;

    border-color:#0d6efd;

}

.hosty-filter-item.active{

    background:#0d6efd;

    color:#fff;

    border-color:#0d6efd;

}
/*=========================================
TABLET
=========================================*/

@media (max-width:991px){

.hosty-shop-grid{

    grid-template-columns:repeat(3,1fr);

    gap:20px;

}

.hosty-toolbar{

    flex-direction:column;

    gap:15px;

}

.hosty-toolbar-left,
.hosty-toolbar-right{

    width:100%;

}

.hosty-toolbar-right select{

    width:100%;

}

}
/*=========================================
MOBILE
=========================================*/

@media (max-width:767px){

.hosty-shop-container{

    padding:20px 15px;

}

/* المنتجات */

.hosty-shop-grid{

    grid-template-columns:repeat(2,1fr);

    gap:15px;

}

/* الصورة */

.hosty-product-image{

    height:100%;

}

/* اسم المنتج */

.hosty-product-title{

    font-size:15px;

    min-height:42px;

}

/* السعر */

.hosty-product-price{

    font-size:16px;

}

/* الأزرار */

.hosty-product-actions{

    flex-direction:column;

    gap:8px !important;

}

.hosty-product-actions a,

.hosty-product-actions .button{

    width:100% !important;

    max-width:100% !important;

}

/* Toolbar */

.hosty-toolbar{

    padding:15px;

}

.hosty-count{

    text-align:center;

}

/* القائمة */

.hosty-toolbar-right select{

    width:100%;

}

/* التصنيفات */

.hosty-category-filter{

    gap:10px;

}

.hosty-filter-item{

    padding:10px 18px;

    font-size:14px;

}

}
/*=========================================
SMALL PHONES
=========================================*/

@media (max-width:420px){

.hosty-shop-grid{

    grid-template-columns:repeat(2,1fr);

    gap:12px;

}

.hosty-product-image{

    height:140px;

}

.hosty-product-body{

    padding:12px;

}

.hosty-product-title{

    font-size:14px;

}

.hosty-product-price{

    font-size:18px;

}

.hosty-product-actions a,

.hosty-product-actions .button{

    font-size:13px;

    min-height:42px;

}

}
/* ==================================================
   HOSTY RELATED PRODUCTS - MOBILE
   منتجين بجانب بعضهما في صفحة المنتج
================================================== */

@media (max-width: 767px) {

    .hosty-related-products {
        width: 100%;
        margin-top: 35px;
        padding-bottom: 40px;
    }

    .hosty-related-products > h2 {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
    }

    .hosty-related-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .hosty-related-grid .related-card {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 12px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hosty-related-grid .related-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
    }

    .hosty-related-grid .related-card h3 {
        margin: 10px 0 7px;
        font-size: 14px;
        line-height: 1.6;
    }

    .hosty-related-grid .related-price {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .hosty-related-grid .related-card .btn-primary {
        width: 100%;
        padding: 9px 5px;
        font-size: 12px;
        text-align: center;
        box-sizing: border-box;
    }

}

/* =========================================================
   HOSTY STORE
   FULL WIDTH SHOP + BETTER PRODUCT TITLES
========================================================= */

/* =========================================================
   صفحة المتجر - استغلال عرض الشاشة بالكامل
========================================================= */

body.woocommerce-shop #hosty-shop,
body.post-type-archive-product #hosty-shop{
    width:100% !important;
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
}

/* إلغاء حصر المتجر داخل container */
body.woocommerce-shop #hosty-shop > .container,
body.post-type-archive-product #hosty-shop > .container{
    width:100% !important;
    max-width:none !important;

    margin:0 !important;

    padding-left:35px !important;
    padding-right:35px !important;

    box-sizing:border-box;
}

/* =========================================================
   شبكة المنتجات
========================================================= */

body.woocommerce-shop .woocommerce ul.products,
body.post-type-archive-product .woocommerce ul.products{

    width:100% !important;

    display:grid !important;

    grid-template-columns:repeat(4, minmax(0,1fr)) !important;

    gap:28px !important;

    margin:0 !important;
    padding:0 !important;

    box-sizing:border-box;
}

/* الكارت */
body.woocommerce-shop .hosty-product-item,
body.post-type-archive-product .hosty-product-item{
    width:100% !important;
    max-width:none !important;

    margin:0 !important;
}

/* =========================================================
   PRODUCT CARD
========================================================= */

body.woocommerce-shop .hosty-product-card,
body.post-type-archive-product .hosty-product-card{

    width:100% !important;
    height:100% !important;

    box-sizing:border-box;

    border-radius:18px;
}

/* الصورة تستغل عرض الكارت */
body.woocommerce-shop .hosty-product-image,
body.post-type-archive-product .hosty-product-image{

    width:100% !important;

    aspect-ratio:1 / 1 !important;
}

/* =========================================================
   عنوان المنتج
========================================================= */

body.woocommerce-shop .hosty-product-title,
body.post-type-archive-product .hosty-product-title{

    width:100% !important;

    min-height:0px !important;

    margin:0 0 0px !important;

    padding:0 !important;

    display:flex !important;

    align-items:flex-start !important;

    justify-content:center !important;

    text-align:center !important;

    font-size:15px !important;

    line-height:1.2 !important;

    font-weight:700 !important;

    overflow:visible !important;
}

/* رابط العنوان */
body.woocommerce-shop .hosty-product-title a,
body.post-type-archive-product .hosty-product-title a{

    display:-webkit-box !important;

    width:100% !important;

    color:#222 !important;

    text-decoration:none !important;

    text-align:center !important;

    line-height:1.2 !important;

    overflow:hidden !important;

    -webkit-box-orient:vertical;

    -webkit-line-clamp:2;
}

/* =========================================================
   جسم الكارت
========================================================= */

body.woocommerce-shop .hosty-product-body,
body.post-type-archive-product .hosty-product-body{

    padding:10px !important;

    box-sizing:border-box;
}

/* =========================================================
   السعر
========================================================= */

body.woocommerce-shop .hosty-product-price,
body.post-type-archive-product .hosty-product-price{

    text-align:center !important;

    font-size:18px !important;

    margin:5px 0 0px !important;
}

/* =========================================================
   الأزرار
========================================================= */

body.woocommerce-shop .hosty-product-actions,
body.post-type-archive-product .hosty-product-actions{

    width:100% !important;

    display:flex !important;

    gap:10px !important;

    align-items:stretch !important;
}

body.woocommerce-shop .hosty-product-actions .hosty-view-btn,
body.post-type-archive-product .hosty-product-actions .hosty-view-btn,

body.woocommerce-shop .hosty-product-actions .button,
body.post-type-archive-product .hosty-product-actions .button{

    min-width:0 !important;
}

/* =========================================================
   TABLET
========================================================= */

@media(max-width:1100px){

    body.woocommerce-shop #hosty-shop > .container,
    body.post-type-archive-product #hosty-shop > .container{

        padding-left:25px !important;
        padding-right:25px !important;
    }

    body.woocommerce-shop .woocommerce ul.products,
    body.post-type-archive-product .woocommerce ul.products{

        grid-template-columns:repeat(3,minmax(0,1fr)) !important;

        gap:22px !important;
    }

    body.woocommerce-shop .hosty-product-title,
    body.post-type-archive-product .hosty-product-title{

        font-size:19px !important;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:768px){

    body.woocommerce-shop #hosty-shop > .container,
    body.post-type-archive-product #hosty-shop > .container{

        padding-left:12px !important;
        padding-right:12px !important;
    }

    body.woocommerce-shop .woocommerce ul.products,
    body.post-type-archive-product .woocommerce ul.products{

        grid-template-columns:repeat(2,minmax(0,1fr)) !important;

        gap:14px !important;
    }

    body.woocommerce-shop .hosty-product-body,
    body.post-type-archive-product .hosty-product-body{

        padding:14px 10px !important;
    }

    body.woocommerce-shop .hosty-product-title,
    body.post-type-archive-product .hosty-product-title{

        min-height:60px !important;

        margin-bottom:0px !important;

        font-size:17px !important;

        line-height:1.45 !important;
    }

    body.woocommerce-shop .hosty-product-price,
    body.post-type-archive-product .hosty-product-price{

        font-size:19px !important;

        margin-bottom:0px !important;
    }

    body.woocommerce-shop .hosty-product-actions,
    body.post-type-archive-product .hosty-product-actions{

        flex-direction:column !important;

        gap:8px !important;
    }

    body.woocommerce-shop .hosty-product-actions .hosty-view-btn,
    body.post-type-archive-product .hosty-product-actions .hosty-view-btn,

    body.woocommerce-shop .hosty-product-actions .button,
    body.post-type-archive-product .hosty-product-actions .button{

        width:100% !important;

        flex:0 0 auto !important;

        min-height:45px !important;
    }
}

/* =========================================================
   MOBILE SMALL
========================================================= */

@media(max-width:480px){

    body.woocommerce-shop .woocommerce ul.products,
    body.post-type-archive-product .woocommerce ul.products{

        gap:12px !important;
    }

    body.woocommerce-shop .hosty-product-title,
    body.post-type-archive-product .hosty-product-title{

        font-size:15px !important;

        min-height:20px !important;
    }

    body.woocommerce-shop .hosty-product-body,
    body.post-type-archive-product .hosty-product-body{

        padding:10px 9px !important;
    }

    body.woocommerce-shop .hosty-product-price,
    body.post-type-archive-product .hosty-product-price{

        font-size:15px !important;
    }
}

