/*==================================================*
 * Dream Gomla Shop Page
 * shop.css
 *==================================================*/


/*==================================================*
 * CSS VARIABLES
 *==================================================*/

:root {
    --primary: #D10024;
    --primary-hover: #b0001f;

    --dark: #2B2D42;
    --text: #555555;

    --white: #FFFFFF;
    --light: #F8F9FA;
    --border: #E4E7ED;

    --shadow: 0 8px 30px rgba(0, 0, 0, .06);

    --radius: 12px;
    --transition: .35s;
}


/*==================================================*
 * GENERAL
 *==================================================*/

body {
    font-family: 'Cairo', sans-serif;
    background: #fafafa;
    color: var(--dark);
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

section {
    position: relative;
}


/*==================================================*
 * PAGE HEADER
 *==================================================*/

.shop-page-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.shop-page-header img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}


/*==================================================*
 * BREADCRUMB
 *==================================================*/

.breadcrumb-section {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    background: none;
    margin: 0;
}

.breadcrumb-item a {
    color: #777;
    font-size: 15px;
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 700;
}


/*==================================================*
 * SHOP AREA
 *==================================================*/

.shop-area {
    padding: 45px 0 60px;
}


/*==================================================*
 * SIDEBAR
 * Note: Sidebar is not used on the current Shop page.
 * These styles are kept for compatibility.
 *==================================================*/

.shop-sidebar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    position: sticky;
    top: 30px;
}


/*==================================================*
 * FILTER BOX
 *==================================================*/

.filter-box {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.filter-box:last-child {
    margin-bottom: 0;
    border: none;
    padding-bottom: 0;
}


/*==================================================*
 * FILTER TITLE
 *==================================================*/

.filter-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--dark);
}

.filter-title i {
    color: var(--primary);
    margin-left: 8px;
}


/*==================================================*
 * CATEGORY LIST
 *==================================================*/

.category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .3s;
}

.category-list a:hover {
    color: var(--primary);
    padding-right: 8px;
}


/*==================================================*
 * CHECKBOX
 *==================================================*/

.form-check {
    margin-bottom: 10px;
}

.form-check:last-child {
    margin-bottom: 0;
}

.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    cursor: pointer;
    color: #666;
}


/*==================================================*
 * RANGE
 *==================================================*/

.form-range {
    margin: 15px 0;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary);
}

.form-range::-moz-range-thumb {
    background: var(--primary);
}


/*==================================================*
 * SHOP CONTAINER
 * No sidebar - use the available width.
 *==================================================*/

.woocommerce-shop .container,
.tax-product_cat .container,
.post-type-archive-product .container {
    width: 94%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}


/*==================================================*
 * BOOTSTRAP ROW
 * Keep the Bootstrap gutter balanced.
 *==================================================*/

.woocommerce-shop .row,
.tax-product_cat .row,
.post-type-archive-product .row {
    --bs-gutter-x: 24px;
}


/*==================================================*
 * TOOLBAR
 *==================================================*/

.shop-toolbar {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    border: 1px solid rgba(228, 231, 237, .65);
}

.shop-toolbar .form-select {
    border-radius: 8px;
    height: 45px;
    border: 1px solid var(--border);
    box-shadow: none;
}

.shop-toolbar .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .15rem rgba(209, 0, 36, .08);
}

.shop-toolbar .btn {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: .3s;
}

.shop-toolbar .btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.shop-toolbar i {
    font-size: 18px;
}

/* WooCommerce result count */
.shop-toolbar .woocommerce-result-count {
    margin: 0;
    color: var(--dark);
    font-size: 15px;
}

/* WooCommerce ordering */
.shop-toolbar .woocommerce-ordering {
    margin: 0;
}

.shop-toolbar .woocommerce-ordering select {
    min-width: 200px;
}


/*==================================================*
 * PRODUCT GRID
 *==================================================*/

.product-grid {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.product-grid > [class*="col-"] {
    display: flex;
    align-items: stretch;
    margin-bottom: 24px;
}

.product-grid > [class*="col-"] > .dg-card {
    width: 100%;
}


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

.dg-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;

    display: flex;
    flex-direction: column;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .04);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.dg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .09);
    border-color: var(--border);
}


/*==================================================*
 * PRODUCT IMAGE
 *==================================================*/

.dg-image {
    position: relative;
    height: 260px;
    min-height: 260px;

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

    padding: 18px;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.dg-image > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.dg-image .dg-product-img-main,
.dg-image .dg-product-img-hover {
    position: absolute;
    inset: 12px;

    width: calc(100% - 24px);
    height: calc(100% - 24px);

    max-width: none;
    max-height: none;

    object-fit: contain;

    transition:
        opacity .4s ease,
        transform .4s ease;
}

.dg-image .dg-product-img-main {
    opacity: 1;
    z-index: 2;
}

.dg-image .dg-product-img-hover {
    opacity: 0;
    z-index: 3;
}

.dg-card:hover .dg-product-img-main {
    opacity: 0;
    transform: scale(1.02);
}

.dg-card:hover .dg-product-img-hover {
    opacity: 1;
    transform: scale(1.04);
}

/* Single product image */
.dg-image > a > img:only-child {
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 235px;
}


/*==================================================*
 * DISCOUNT BADGE
 *==================================================*/

.dg-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;

    background: var(--primary);
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    padding: 6px 12px;
    min-width: 44px;
    text-align: center;

    border-radius: 30px;
    z-index: 10;

    direction: ltr;
    unicode-bidi: isolate;
}


/*==================================================*
 * WISHLIST
 *==================================================*/

.dg-product-wishlist {
    position: absolute;
    left: 15px;
    top: 15px;

    width: 40px;
    height: 40px;

    border-radius: 50%;
    background: #fff;

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

    box-shadow: 0 5px 12px rgba(0, 0, 0, .12);

    color: #777;
    cursor: pointer;

    transition: .3s;
    z-index: 10;
}

.dg-product-wishlist:hover {
    background: var(--primary);
    color: #fff;
}


/*==================================================*
 * PRODUCT ACTIONS
 *==================================================*/

.dg-product-actions {
    position: absolute;
    left: 15px;
    top: 65px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);

    transition: .3s;
    z-index: 10;
}

.dg-card:hover .dg-product-actions {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dg-product-actions a {
    width: 40px;
    height: 40px;

    border-radius: 50%;
    background: #fff;

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

    color: #555;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .12);

    transition: .3s;
}

.dg-product-actions a:hover {
    background: var(--primary);
    color: #fff;
}


/*==================================================*
 * PRODUCT CONTENT
 *==================================================*/

.dg-product-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;

    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
}


/*==================================================*
 * PRODUCT CATEGORY
 *==================================================*/

.dg-product-category {
    min-height: 22px;
    margin-bottom: 5px;

    font-size: 13px;
    color: #888;
}

.dg-product-category a {
    color: #888;
}

.dg-product-category a:hover {
    color: var(--primary);
}


/*==================================================*
 * PRODUCT TITLE
 *==================================================*/

.dg-product-title,
.dg-product-content h4 {
    min-height: 58px;
    height: 58px;

    margin: 0 0 6px;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.65;

    overflow: hidden;
}

.dg-product-title a,
.dg-product-content h4 a {
    color: var(--dark);
}

.dg-product-title a:hover,
.dg-product-content h4 a:hover {
    color: var(--primary);
}


/*==================================================*
 * RATING
 *==================================================*/

.dg-product-rating {
    min-height: 20px;
    margin-bottom: 5px;

    color: #FFC107;
    font-size: 14px;
}

.dg-product-rating .star-rating {
    float: none;
    margin: 0;
}

.dg-product-rating .star-rating span {
    color: #FFC107;
}


/*==================================================*
 * PRICE
 *==================================================*/

.dg-product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;

    min-height: 38px;
    margin-top: auto;
    margin-bottom: 14px;
}

.dg-product-price .amount {
    color: var(--primary);
    font-size: 23px;
    font-weight: 800;
}

.dg-product-price del {
    color: #999;
    font-size: 14px;
}

.dg-product-price del .amount {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.dg-product-price ins {
    text-decoration: none;
}


/*==================================================*
 * ADD TO CART
 *==================================================*/

.dg-product-cart {
    margin-top: 0;
}

.dg-product-cart .button,
.dg-card .add_to_cart_button,
.dg-card .product_type_simple,
.dg-card .product_type_variable,
.dg-card .product_type_external {
    width: 100%;
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: #fff;

    border: 0;
    border-radius: 10px;

    padding: 10px 18px;

    font-size: 15px;
    font-weight: 700;

    transition: .3s;
}

.dg-product-cart .button:hover,
.dg-card .add_to_cart_button:hover,
.dg-card .product_type_simple:hover,
.dg-card .product_type_variable:hover,
.dg-card .product_type_external:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
}


/*==================================================*
 * PAGINATION
 *==================================================*/

.woocommerce nav.woocommerce-pagination {
    margin-top: 25px;
}

.woocommerce nav.woocommerce-pagination ul {
    border: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    min-width: 42px;
    height: 42px;

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

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #fff;
    color: var(--dark);

    transition: .3s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}


/*==================================================*
 * RESPONSIVE DESIGN
 *==================================================*/


/*--------------------------------------------------*
 * LARGE DESKTOP
 * 1200px and above
 * 4 products per row
 *--------------------------------------------------*/

@media (min-width: 1200px) {

    .product-grid > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .dg-image {
        height: 270px;
        min-height: 270px;
    }
}


/*--------------------------------------------------*
 * DESKTOP
 * 992px - 1199px
 * 3 products per row
 *--------------------------------------------------*/

@media (min-width: 992px) and (max-width: 1199px) {

    .woocommerce-shop .container,
    .tax-product_cat .container,
    .post-type-archive-product .container {
        width: 94%;
        max-width: 1140px;
    }

    .product-grid > [class*="col-"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .dg-image {
        height: 250px;
        min-height: 250px;
    }
}


/*--------------------------------------------------*
 * TABLET
 * 768px - 991px
 * 2 products per row
 *--------------------------------------------------*/

@media (min-width: 768px) and (max-width: 991px) {

    .woocommerce-shop .container,
    .tax-product_cat .container,
    .post-type-archive-product .container {
        width: 92%;
        max-width: 960px;
    }

    .product-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .dg-image {
        height: 230px;
        min-height: 230px;
    }

    .dg-product-title,
    .dg-product-content h4 {
        font-size: 16px;
    }

    .shop-toolbar {
        padding: 16px;
    }
}


/*--------------------------------------------------*
 * MOBILE
 * 576px - 767px
 * 2 products per row
 *--------------------------------------------------*/

@media (min-width: 576px) and (max-width: 767px) {

    .woocommerce-shop .container,
    .tax-product_cat .container,
    .post-type-archive-product .container {
        width: 94%;
    }

    .shop-area {
        padding: 30px 0 45px;
    }

    .shop-toolbar {
        padding: 15px;
    }

    .shop-toolbar .woocommerce-ordering select {
        width: 100%;
        min-width: 0;
    }

    .product-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 18px;
    }

    .dg-image {
        height: 210px;
        min-height: 210px;
    }

    .dg-product-content {
        padding: 14px;
    }

    .dg-product-title,
    .dg-product-content h4 {
        height: 52px;
        min-height: 52px;
        font-size: 15px;
    }

    .dg-product-price .amount {
        font-size: 19px;
    }

    .dg-product-cart .button {
        min-height: 44px;
        font-size: 14px;
    }
}


/*--------------------------------------------------*
 * SMALL MOBILE
 * Up to 575px
 * 2 products per row
 *--------------------------------------------------*/

@media (max-width: 575px) {

    .woocommerce-shop .container,
    .tax-product_cat .container,
    .post-type-archive-product .container {
        width: 96%;
    }

    .shop-area {
        padding: 25px 0 40px;
    }

    .shop-toolbar {
        padding: 12px;
        margin-bottom: 20px;
    }

    .shop-toolbar .row > div {
        margin-bottom: 10px;
    }

    .shop-toolbar .row > div:last-child {
        margin-bottom: 0;
    }

    .shop-toolbar .woocommerce-ordering,
    .shop-toolbar .woocommerce-ordering select {
        width: 100%;
        min-width: 0;
    }

    .shop-toolbar .woocommerce-result-count {
        font-size: 13px;
    }

    .product-grid {
        margin-left: -4px;
        margin-right: -4px;
    }

    .product-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 4px;
        padding-right: 4px;
        margin-bottom: 14px;
    }

    .dg-card {
        border-radius: 12px;
    }

    .dg-image {
        height: 190px;
        min-height: 190px;
        padding: 10px;
    }

    .dg-image .dg-product-img-main,
    .dg-image .dg-product-img-hover {
        inset: 8px;
        width: calc(100% - 16px);
        height: calc(100% - 16px);
    }

    .dg-image > a > img:only-child {
        max-height: 165px;
    }

    .dg-product-badge {
        top: 9px;
        right: 9px;
        min-width: 36px;
        padding: 5px 8px;
        font-size: 11px;
    }

    .dg-product-wishlist {
        left: 9px;
        top: 9px;
        width: 34px;
        height: 34px;
    }

    .dg-product-actions {
        display: none;
    }

    .dg-product-content {
        padding: 10px 10px 12px;
    }

    .dg-product-category {
        min-height: 18px;
        font-size: 11px;
        margin-bottom: 3px;
    }

    .dg-product-title,
    .dg-product-content h4 {
        height: 48px;
        min-height: 48px;
        margin-bottom: 4px;
        font-size: 13px;
        line-height: 1.55;
    }

    .dg-product-rating {
        min-height: 18px;
        font-size: 12px;
    }

    .dg-product-price {
        min-height: 32px;
        gap: 5px;
        margin-bottom: 9px;
    }

    .dg-product-price .amount {
        font-size: 17px;
    }

    .dg-product-price del,
    .dg-product-price del .amount {
        font-size: 11px;
    }

    .dg-product-cart .button,
    .dg-card .add_to_cart_button,
    .dg-card .product_type_simple,
    .dg-card .product_type_variable,
    .dg-card .product_type_external {
        min-height: 40px;
        padding: 7px 8px;
        border-radius: 8px;
        font-size: 12px;
    }

    .woocommerce nav.woocommerce-pagination ul {
        gap: 4px;
    }

    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        min-width: 36px;
        height: 36px;
    }
}


/*--------------------------------------------------*
 * VERY SMALL MOBILE
 * Up to 359px
 * 1 product per row
 *--------------------------------------------------*/

@media (max-width: 359px) {

    .woocommerce-shop .container,
    .tax-product_cat .container,
    .post-type-archive-product .container {
        width: 94%;
    }

    .product-grid {
        margin-left: 0;
        margin-right: 0;
    }

    .product-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .dg-image {
        height: 230px;
        min-height: 230px;
    }

    .dg-product-title,
    .dg-product-content h4 {
        font-size: 15px;
    }

    .dg-product-price .amount {
        font-size: 19px;
    }
}
