/* =========================================
   SINGLE PRODUCT PAGE
========================================= */

.single-product .site-main,
.brando-single-product {
    background: #f7f7f7;
}

.brando-single-product {
    padding: 38px 0 55px;
}

.brando-product-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, .95fr);

    gap: 38px;

    align-items: start;
}


/* =========================================
   PRODUCT GALLERY
========================================= */

.brando-product-gallery {
    padding: 18px;

    background: #ffffff;

    border: 1px solid #e7e7e7;
    border-radius: 12px;
}

.brando-product-gallery
.woocommerce-product-gallery {
    width: 100% !important;

    float: none !important;

    margin: 0 !important;
}

.brando-product-gallery
.woocommerce-product-gallery__wrapper {
    margin: 0;
}

.brando-product-gallery
.woocommerce-product-gallery__image {
    overflow: hidden;

    background: #fafafa;

    border-radius: 10px;
}

.brando-product-gallery
.woocommerce-product-gallery__image img {
    width: 100%;
    max-height: 520px;

    object-fit: contain;
    object-position: center;
}


/* =========================================
   GALLERY THUMBNAILS
========================================= */

.brando-product-gallery
.flex-control-thumbs {
    margin: 14px 0 0 !important;

    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.brando-product-gallery
.flex-control-thumbs li {
    width: 100% !important;

    float: none !important;
}

.brando-product-gallery
.flex-control-thumbs img {
    width: 100%;

    padding: 3px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 7px;

    cursor: pointer;
}

.brando-product-gallery
.flex-control-thumbs img.flex-active {
    border-color: var(--brando-orange);
}


/* =========================================
   PRODUCT INFO
========================================= */

.brando-product-info {
    padding: 28px;

    background: #ffffff;

    border: 1px solid #e7e7e7;
    border-radius: 12px;
}


/* =========================================
   CATEGORY
========================================= */

.brando-product-category {
    margin-bottom: 8px;

    color: var(--brando-orange);

    font-size: 12px;
    font-weight: 700;
}

.brando-product-category a {
    color: inherit;
}


/* =========================================
   TITLE
========================================= */

.brando-product-title {
    margin: 0 0 12px;

    color: #111111;

    font-size: 32px;
    font-weight: 800;

    line-height: 1.3;
}


/* =========================================
   RATING
========================================= */

.brando-product-rating {
    margin-bottom: 12px;
}

.brando-product-rating
.star-rating {
    float: none;

    margin: 0;

    color: var(--brando-orange);
}


/* =========================================
   PRICE
========================================= */

.brando-product-price {
    margin-bottom: 15px;
}

.brando-product-price
.price {
    margin: 0 !important;

    color: #111111;

    font-size: 26px !important;
    font-weight: 800;
}

.brando-product-price del {
    margin-left: 7px;

    color: #999999;

    font-size: 16px;
}

.brando-product-price ins {
    color: var(--brando-orange);

    text-decoration: none;
}


/* =========================================
   DESCRIPTION
========================================= */

.brando-product-description {
    margin-bottom: 15px;

    color: #666666;

    font-size: 14px;

    line-height: 1.8;
}

.brando-product-description p {
    margin: 0;
}


/* =========================================
   STOCK
========================================= */

.brando-product-stock {
    margin-bottom: 15px;

    font-size: 12px;
}

.brando-product-stock
.stock.in-stock {
    color: #238636;

    font-weight: 700;
}

.brando-product-stock
.stock.out-of-stock {
    color: #c62828;

    font-weight: 700;
}


/* =========================================
   ADD TO CART
========================================= */

.brando-product-buy {
    margin-top: 18px;
}

.brando-product-buy
form.cart {
    width: 100%;

    display: flex;
    align-items: stretch;

    gap: 10px;

    margin: 0 !important;
}


/* =========================================
   QUANTITY
========================================= */

.brando-product-buy
.quantity {
    margin: 0 !important;
}

.brando-product-buy
.quantity input.qty {
    width: 75px;
    height: 46px;

    padding: 0 4px;

    border: 1px solid #dddddd;
    border-radius: 6px;

    background: #ffffff;
    color: #111111;

    font-size: 14px;

    text-align: center;

    outline: none;

    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

.brando-product-buy
.quantity input.qty:focus {
    border-color: var(--brando-orange);
}


/* Chrome / Edge - keep arrows visible */

.brando-product-buy
.quantity input.qty::-webkit-inner-spin-button,
.brando-product-buy
.quantity input.qty::-webkit-outer-spin-button {
    display: block !important;

    opacity: 1 !important;

    -webkit-appearance: inner-spin-button !important;

    margin: 0 !important;

    cursor: pointer;
}


/* =========================================
   ADD TO CART BUTTON
========================================= */

.brando-product-buy
.single_add_to_cart_button {
    flex: 1;

    min-height: 46px;

    margin: 0 !important;
    padding: 0 22px !important;

    border: 0 !important;
    border-radius: 6px !important;

    background: var(--brando-black) !important;
    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    cursor: pointer;

    transition:
        background .2s ease;
}

.brando-product-buy
.single_add_to_cart_button:hover {
    background: var(--brando-orange) !important;
}


/* =========================================
   SINGLE PRODUCT WISHLIST
========================================= */

.single-product-wishlist {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;

    position: relative !important;

    margin: 10px 0 0 !important;
    padding: 0 20px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 7px !important;

    border: 1px solid #111111 !important;
    border-radius: 6px !important;

    background: #ffffff !important;
    color: #111111 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    text-align: center !important;

    cursor: pointer;

    overflow: visible !important;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


/* Remove heart created from base.css */

.single-product-wishlist::before {
    content: none !important;

    display: none !important;
}


/* =========================================
   EMPTY WISHLIST STATE
========================================= */

.single-product-wishlist
.wishlist-empty {
    display: inline-flex !important;

    visibility: visible !important;
    opacity: 1 !important;

    align-items: center;
    justify-content: center;

    color: inherit !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1 !important;
}

.single-product-wishlist
.wishlist-filled {
    display: none !important;

    visibility: hidden !important;
    opacity: 0 !important;
}


/* Compatibility with old markup */

.single-product-wishlist
.wishlist-text {
    display: inline-block !important;

    visibility: visible !important;
    opacity: 1 !important;

    color: inherit !important;

    font-size: 14px !important;
    font-weight: 700 !important;
}


/* =========================================
   WISHLIST HOVER
========================================= */

.single-product-wishlist:hover {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}


/* =========================================
   WISHLIST ACTIVE
========================================= */

.single-product-wishlist.is-favorite {
    background: var(--brando-orange) !important;
    border-color: var(--brando-orange) !important;
    color: #ffffff !important;
}

.single-product-wishlist.is-favorite
.wishlist-empty {
    display: none !important;

    visibility: hidden !important;
    opacity: 0 !important;
}

.single-product-wishlist.is-favorite
.wishlist-filled {
    display: inline-flex !important;

    visibility: visible !important;
    opacity: 1 !important;

    align-items: center;
    justify-content: center;

    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1 !important;
}


/* Support old markup:
   change text after adding to wishlist */

.single-product-wishlist.is-favorite
.wishlist-text {
    font-size: 0 !important;
}

.single-product-wishlist.is-favorite
.wishlist-text::after {
    content: "تمت الإضافة إلى المفضلة";

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}


/* CLICK */

.single-product-wishlist:active {
    transform: scale(.98);
}


/* =========================================
   PRODUCT BENEFITS
========================================= */

.brando-product-benefits {
    margin-top: 22px;
    padding-top: 18px;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    border-top: 1px solid #eeeeee;
}

.brando-product-benefits > div {
    min-width: 0;

    text-align: center;
}

.brando-product-benefits span {
    display: block;

    margin-bottom: 5px;

    font-size: 22px;
}

.brando-product-benefits strong {
    display: block;

    margin-bottom: 3px;

    color: #111111;

    font-size: 11px;
}

.brando-product-benefits small {
    display: block;

    color: #888888;

    font-size: 9px;

    line-height: 1.5;
}


/* =========================================
   RELATED PRODUCTS
========================================= */

.brando-related-products {
    padding: 55px 0 65px;

    background: #f7f7f7;

    border-top: 1px solid #eeeeee;
}


/* =========================================
   RELATED HEADING
========================================= */

.brando-related-heading {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.brando-related-heading > div {
    text-align: right;
}

.brando-related-heading span {
    display: block;

    margin-bottom: 6px;

    color: var(--brando-orange);

    font-size: 12px;
    font-weight: 700;
}

.brando-related-heading h2 {
    margin: 0;

    color: #111111;

    font-size: 28px;
    font-weight: 800;

    line-height: 1.3;
}

.brando-related-view-all {
    color: #555555;

    font-size: 12px;
    font-weight: 700;

    transition:
        color .2s ease;
}

.brando-related-view-all:hover {
    color: var(--brando-orange);
}


/* =========================================
   RELATED GRID
========================================= */

.brando-related-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    direction: rtl;
}


/* =========================================
   RELATED CARD
========================================= */

.brando-related-card {
    min-width: 0;

    position: relative;

    padding: 12px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e6e6e6;
    border-radius: 11px;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.brando-related-card:hover {
    transform: translateY(-4px);

    border-color: #dddddd;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .07);
}


/* =========================================
   RELATED IMAGE
========================================= */

.brando-related-image {
    width: 100%;
    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #fafafa;

    border-radius: 8px;
}

.brando-related-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transition:
        transform .3s ease;
}

.brando-related-card:hover
.brando-related-image img {
    transform: scale(1.03);
}


/* =========================================
   RELATED TITLE
========================================= */

.brando-related-title {
    min-height: 44px;

    margin: 12px 0 7px;

    color: #111111;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.55;

    text-align: right;
}

.brando-related-title a {
    color: #111111;

    transition:
        color .2s ease;
}

.brando-related-title a:hover {
    color: var(--brando-orange);
}


/* =========================================
   RELATED PRICE
========================================= */

.brando-related-price {
    min-height: 25px;

    margin-bottom: 11px;

    color: #111111;

    font-size: 15px;
    font-weight: 800;

    text-align: right;
}

.brando-related-price del {
    margin-left: 5px;

    color: #aaaaaa;

    font-size: 11px;
    font-weight: 500;
}

.brando-related-price ins {
    color: var(--brando-orange);

    text-decoration: none;
}


/* =========================================
   RELATED BUTTON
========================================= */

.brando-related-button {
    width: 100%;
    min-height: 40px;

    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--brando-black);
    color: #ffffff;

    border-radius: 5px;

    font-size: 11px;
    font-weight: 700;

    transition:
        background .2s ease;
}

.brando-related-button:hover {
    background: var(--brando-orange);
    color: #ffffff;
}


/* =========================================
   RELATED WISHLIST
========================================= */

.brando-related-card
.shop-product-wishlist {
    position: absolute !important;

    top: 20px !important;
    right: 20px !important;
    left: auto !important;

    z-index: 5;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .07);
}

.brando-related-card
.shop-product-wishlist:hover {
    transform: scale(1.05);
}

/* =========================================
   PRODUCT REVIEWS
========================================= */

.brando-product-reviews {
    padding: 50px 0;

    background: #f7f7f7;
}

.brando-product-reviews .brando-container {
    max-width: 1200px;
}


/* HEADING */

.brando-reviews-heading {
    margin-bottom: 22px;

    text-align: right;
}

.brando-reviews-heading > span {
    display: block;

    margin-bottom: 5px;

    color: var(--brando-orange);

    font-size: 12px;
    font-weight: 700;
}

.brando-reviews-heading h2 {
    margin: 0;

    color: #111;

    font-size: 28px;
    font-weight: 800;
}


/* REVIEW BOX */

.brando-reviews-content {
    padding: 28px;

    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 10px;
}


/* REMOVE DUPLICATED WOOCOMMERCE TITLE */

.brando-reviews-content
#reviews
.woocommerce-Reviews-title {
    display: none;
}


/* NO REVIEWS */

.brando-reviews-content
.woocommerce-noreviews {
    margin: 0 0 20px;

    color: #666;

    font-size: 14px;
}


/* REVIEW FORM */

.brando-reviews-content
#review_form_wrapper {
    width: 100%;
}

.brando-reviews-content
.comment-reply-title {
    display: block;

    margin-bottom: 18px;

    color: #111;

    font-size: 17px;
    font-weight: 700;
}


/* RATING LABEL */

.brando-reviews-content
.comment-form-rating {
    margin-bottom: 18px;
}

.brando-reviews-content
.comment-form-rating label {
    display: block;

    margin-bottom: 8px;

    color: #111;

    font-size: 14px;
    font-weight: 700;
}


/* STARS */

.brando-reviews-content
.comment-form-rating
.stars {
    margin: 0 !important;
}

.brando-reviews-content
.comment-form-rating
.stars a {
    color: var(--brando-orange) !important;

    font-size: 22px;
}


/* REVIEW TEXTAREA */

.brando-reviews-content
.comment-form-comment label {
    display: block;

    margin-bottom: 8px;

    color: #111;

    font-size: 14px;
    font-weight: 700;
}

.brando-reviews-content
.comment-form-comment textarea {
    width: 100%;
    min-height: 130px;

    padding: 14px;

    resize: vertical;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: #fff;
    color: #111;

    font-size: 14px;

    outline: none;
}

.brando-reviews-content
.comment-form-comment textarea:focus {
    border-color: var(--brando-orange);
}


/* NAME + EMAIL */

.brando-reviews-content
.comment-form-author,
.brando-reviews-content
.comment-form-email {
    margin-bottom: 15px;
}

.brando-reviews-content
.comment-form-author label,
.brando-reviews-content
.comment-form-email label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 700;
}

.brando-reviews-content
.comment-form-author input,
.brando-reviews-content
.comment-form-email input {
    width: 100%;
    height: 44px;

    padding: 0 12px;

    border: 1px solid #ddd;
    border-radius: 6px;

    outline: none;
}

.brando-reviews-content
.comment-form-author input:focus,
.brando-reviews-content
.comment-form-email input:focus {
    border-color: var(--brando-orange);
}


/* SUBMIT */

.brando-reviews-content
.form-submit {
    margin: 18px 0 0;
}

.brando-reviews-content
.form-submit
.submit {
    min-width: 170px;
    height: 44px;

    padding: 0 24px;

    border: 0;
    border-radius: 6px;

    background: var(--brando-black);
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}

.brando-reviews-content
.form-submit
.submit:hover {
    background: var(--brando-orange);
}