/* =========================================================
   ARAX PRODUCT PAGE
   Version 2.0
   ========================================================= */

:root {
    --arax-red: #7d1831;
    --arax-red-dark: #551022;
    --arax-red-light: #a42a47;

    --arax-black: #111111;
    --arax-text: #252525;
    --arax-gray: #666666;

    --arax-bg: #ffffff;
    --arax-light: #f7f7f8;
    --arax-soft-red: #faf0f3;

    --arax-border: #e5e5e7;

    --arax-radius: 14px;

    --arax-shadow: 0 6px 25px rgba(0,0,0,.055);
}


/* =========================================================
   BASIC
   ========================================================= */

body.arax-product-page {
    background: #ffffff !important;
}

body.arax-product-page .site-content {
    background: #ffffff !important;
}

body.arax-product-page #content {
    padding-top: 0 !important;
}

body.arax-product-page .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.arax-product-page .site-main {
    margin: 0 !important;
    padding: 0 !important;
}

body.arax-product-page .woocommerce {
    font-family: "Cairo", sans-serif;
    color: var(--arax-text);
}

body.arax-product-page * {
    box-sizing: border-box;
}


/* =========================================================
   MAIN WIDTH
   ========================================================= */

.arax-product-container {
    width: min(1240px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}


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

.arax-product-breadcrumb-wrap {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid var(--arax-border);

    margin: 0;
}

.arax-product-breadcrumb {
    width: min(1240px, calc(100% - 40px));

    min-height: 54px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    padding: 8px 0;

    font-size: 12px;
    line-height: 1.8;
}

.arax-product-breadcrumb a {
    color: var(--arax-red);
    text-decoration: none;
    font-weight: 700;
}

.arax-product-breadcrumb a:hover {
    color: var(--arax-red-dark);
}

.arax-breadcrumb-separator {
    color: #aaa;
    padding: 0 3px;
}

.arax-breadcrumb-current {
    color: #666;

    max-width: 420px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   PRODUCT MAIN
   ========================================================= */

body.arax-product-page div.product {
    width: min(1240px, calc(100% - 40px));

    margin: 24px auto 55px !important;
    padding: 0 !important;

    display: grid;

    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);

    gap: 42px;

    align-items: start;
}


/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

body.arax-product-page div.product .woocommerce-product-gallery {
    width: 100% !important;

    float: none !important;

    margin: 0 !important;

    padding: 14px !important;

    background: #ffffff;

    border: 1px solid var(--arax-border);

    border-radius: 16px;

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

    position: relative;
}


/*
 * IMPORTANT:
 * The image itself is deliberately limited.
 * This fixes the previous oversized image problem.
 */

body.arax-product-page
.woocommerce-product-gallery
.woocommerce-product-gallery__image {

    display: flex;

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

    min-height: 390px;
    max-height: 470px;

    background: #ffffff;

    border-radius: 11px;

    overflow: hidden;
}

body.arax-product-page
.woocommerce-product-gallery
.woocommerce-product-gallery__image img {

    width: auto !important;
    max-width: 90% !important;

    height: auto !important;

    max-height: 390px !important;

    object-fit: contain !important;

    margin: auto !important;

    display: block;

    transition: transform .25s ease;
}

body.arax-product-page
.woocommerce-product-gallery
.woocommerce-product-gallery__image:hover img {

    transform: scale(1.015);
}


/* =========================================================
   THUMBNAILS
   ========================================================= */

body.arax-product-page .flex-control-thumbs {

    display: flex !important;

    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin: 12px 0 0 !important;

    padding: 0 !important;
}

body.arax-product-page .flex-control-thumbs li {

    width: 60px !important;

    margin: 0 !important;

    float: none !important;
}

body.arax-product-page .flex-control-thumbs li img {

    width: 60px !important;
    height: 60px !important;

    object-fit: contain;

    padding: 4px;

    background: #ffffff;

    border: 1px solid var(--arax-border);

    border-radius: 8px;

    opacity: .65;

    transition: all .2s ease;
}

body.arax-product-page .flex-control-thumbs li img:hover,
body.arax-product-page .flex-control-thumbs li img.flex-active {

    opacity: 1;

    border-color: var(--arax-red);

    transform: translateY(-2px);
}


/* =========================================================
   SALE BADGE
   ========================================================= */

body.arax-product-page div.product .onsale {

    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 10;

    min-width: 0;
    min-height: 0;

    margin: 0 !important;

    padding: 6px 13px;

    background: var(--arax-red);

    color: #ffffff;

    border-radius: 30px;

    font-size: 11px;

    font-weight: 800;

    line-height: 1.5;
}


/* =========================================================
   SUMMARY
   ========================================================= */

body.arax-product-page div.product .summary {

    width: 100% !important;

    float: none !important;

    margin: 0 !important;

    padding: 4px 0 0 !important;
}


/* =========================================================
   IDENTITY
   ========================================================= */

.arax-product-identity {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 12px;
}

.arax-product-brand {

    display: inline-flex;

    align-items: center;

    min-height: 29px;

    padding: 4px 12px;

    background: var(--arax-soft-red);

    border: 1px solid #ead3da;

    border-radius: 30px;

    color: var(--arax-red);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .4px;
}

.arax-product-model {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #777;

    font-size: 12px;

    font-weight: 600;
}

.arax-product-model strong {

    color: #111;

    font-weight: 800;
}


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

body.arax-product-page div.product .summary .product_title {

    margin: 0 0 14px !important;

    color: var(--arax-black);

    font-size: clamp(25px, 3vw, 34px);

    line-height: 1.5;

    font-weight: 800;

    letter-spacing: -.2px;
}

body.arax-product-page div.product .summary .product_title::after {

    content: "";

    display: block;

    width: 45px;

    height: 3px;

    margin-top: 12px;

    background: var(--arax-red);

    border-radius: 5px;
}


/* =========================================================
   SHORT DESCRIPTION
   ========================================================= */

body.arax-product-page
div.product
.summary
.woocommerce-product-details__short-description {

    margin: 0 0 18px !important;

    padding: 0 !important;

    border: 0 !important;

    color: #333;

    font-size: 14px;

    line-height: 1.95;
}

body.arax-product-page
div.product
.summary
.woocommerce-product-details__short-description p {

    margin: 0 0 8px;
}


/* =========================================================
   QUICK INFO
   ========================================================= */

.arax-product-quick-info {

    display: flex;

    align-items: stretch;

    flex-wrap: wrap;

    gap: 10px;

    margin: 0 0 18px;
}

.arax-quick-item {

    min-width: 125px;

    padding: 9px 13px;

    background: #fafafa;

    border: 1px solid var(--arax-border);

    border-radius: 9px;

    display: flex;

    flex-direction: column;

    gap: 2px;
}

.arax-quick-label {

    color: #888;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;
}

.arax-quick-item strong {

    color: #222;

    font-size: 12px;

    font-weight: 800;
}

.arax-quick-item .arax-stock {

    color: #18733b;
}

.arax-quick-item .arax-out-stock {

    color: var(--arax-red);
}


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

body.arax-product-page div.product .summary p.price {

    display: flex;

    align-items: baseline;

    flex-wrap: wrap;

    gap: 10px;

    margin: 4px 0 18px !important;

    color: var(--arax-red);

    font-size: 29px;

    line-height: 1.3;

    font-weight: 900;
}

body.arax-product-page div.product .summary p.price del {

    color: #999;

    font-size: 15px;

    font-weight: 600;

    opacity: 1;
}

body.arax-product-page div.product .summary p.price ins {

    color: var(--arax-red);

    text-decoration: none;

    font-weight: 900;
}


/* =========================================================
   CART
   ========================================================= */

body.arax-product-page div.product .summary form.cart {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin: 0 0 12px !important;

    padding: 12px;

    background: #f8f8f9;

    border: 1px solid var(--arax-border);

    border-radius: 11px;
}

body.arax-product-page .summary form.cart .quantity {

    margin: 0 !important;
}

body.arax-product-page
.summary
form.cart
.quantity
.qty {

    width: 62px !important;

    min-height: 45px;

    padding: 6px;

    background: #ffffff;

    border: 1px solid #d8d8dc;

    border-radius: 7px;

    color: #111;

    font-family: "Cairo", sans-serif;

    font-size: 13px;

    font-weight: 700;

    text-align: center;
}

body.arax-product-page
.summary
.single_add_to_cart_button {

    min-height: 45px;

    margin: 0 !important;

    padding: 8px 23px !important;

    background: var(--arax-red) !important;

    border: 1px solid var(--arax-red) !important;

    border-radius: 7px !important;

    color: #ffffff !important;

    font-family: "Cairo", sans-serif;

    font-size: 13px;

    font-weight: 800;

    box-shadow: none !important;

    transition: all .2s ease;
}

body.arax-product-page
.summary
.single_add_to_cart_button:hover {

    background: var(--arax-red-dark) !important;

    border-color: var(--arax-red-dark) !important;

    transform: translateY(-1px);
}


/* =========================================================
   VARIABLE PRODUCT
   ========================================================= */

body.arax-product-page
.summary
.variations_form {

    padding: 12px !important;

    background: #f8f8f9;

    border: 1px solid var(--arax-border);

    border-radius: 11px;
}

body.arax-product-page
.summary
.variations {

    margin: 0 0 12px !important;
}

body.arax-product-page
.summary
.variations td,
body.arax-product-page
.summary
.variations th {

    padding: 6px !important;

    border: 0 !important;

    background: transparent !important;
}

body.arax-product-page
.summary
.variations label {

    color: #222;

    font-size: 12px;

    font-weight: 800;
}

body.arax-product-page
.summary
.variations select {

    min-height: 40px;

    padding: 6px 10px;

    border: 1px solid #d8d8dc;

    border-radius: 7px;

    background: #ffffff;

    font-family: "Cairo", sans-serif;
}


/* =========================================================
   WHATSAPP
   ========================================================= */

.arax-product-whatsapp {

    width: 100%;

    min-height: 44px;

    margin: 0 0 15px;

    padding: 8px 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    background: var(--arax-soft-red);

    border: 1px solid #dcb4bf;

    border-radius: 7px;

    color: var(--arax-red) !important;

    text-decoration: none !important;

    font-size: 13px;

    font-weight: 800;

    transition: all .2s ease;
}

.arax-product-whatsapp:hover {

    background: var(--arax-red);

    color: #ffffff !important;

    border-color: var(--arax-red);
}

.arax-whatsapp-icon {

    font-size: 12px;
}


/* =========================================================
   META
   ========================================================= */

.arax-product-meta-box {

    margin-top: 10px;

    padding-top: 13px;

    border-top: 1px solid var(--arax-border);
}

.arax-meta-line {

    display: flex;

    align-items: baseline;

    gap: 8px;

    margin-bottom: 5px;

    font-size: 11px;

    line-height: 1.8;
}

.arax-meta-line > span {

    color: #888;

    font-weight: 700;

    min-width: 52px;
}

.arax-meta-line a {

    color: var(--arax-red);

    font-weight: 700;

    text-decoration: none;
}

.arax-meta-line a:hover {

    text-decoration: underline;
}


/* =========================================================
   PRODUCT TABS
   ========================================================= */

body.arax-product-page
div.product
.woocommerce-tabs {

    width: min(1240px, calc(100% - 40px));

    margin: 0 auto 55px !important;

    padding: 0 !important;

    clear: both;
}

body.arax-product-page
.woocommerce-tabs
ul.tabs {

    display: flex;

    align-items: flex-end;

    gap: 3px;

    margin: 0 !important;

    padding: 0 !important;

    border-bottom: 1px solid var(--arax-border);
}

body.arax-product-page
.woocommerce-tabs
ul.tabs::before,
body.arax-product-page
.woocommerce-tabs
ul.tabs::after {

    display: none !important;
}

body.arax-product-page
.woocommerce-tabs
ul.tabs li {

    margin: 0 !important;

    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;
}

body.arax-product-page
.woocommerce-tabs
ul.tabs li::before,
body.arax-product-page
.woocommerce-tabs
ul.tabs li::after {

    display: none !important;
}

body.arax-product-page
.woocommerce-tabs
ul.tabs li a {

    display: block;

    padding: 12px 22px;

    color: #666;

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;

    border-radius: 8px 8px 0 0;
}

body.arax-product-page
.woocommerce-tabs
ul.tabs li.active a {

    background: var(--arax-soft-red);

    color: var(--arax-red);
}

body.arax-product-page
.woocommerce-tabs
ul.tabs li a:hover {

    color: var(--arax-red);

    background: #faf5f6;
}


/* =========================================================
   TAB CONTENT
   ========================================================= */

body.arax-product-page
.woocommerce-tabs
.woocommerce-Tabs-panel {

    margin: 20px 0 0 !important;

    padding: 25px 28px !important;

    background: #ffffff;

    border: 1px solid var(--arax-border);

    border-radius: 13px;

    box-shadow: 0 4px 18px rgba(0,0,0,.03);
}

body.arax-product-page
.woocommerce-tabs
.woocommerce-Tabs-panel h2 {

    margin: 0 0 18px;

    color: var(--arax-red);

    font-size: 21px;

    line-height: 1.5;

    font-weight: 800;
}

body.arax-product-page
.woocommerce-tabs
.woocommerce-Tabs-panel h3 {

    color: var(--arax-red);

    font-size: 17px;

    font-weight: 800;
}

body.arax-product-page
.woocommerce-tabs
.woocommerce-Tabs-panel p,
body.arax-product-page
.woocommerce-tabs
.woocommerce-Tabs-panel li {

    color: #222;

    font-size: 14px;

    line-height: 2;

    text-align: right;
}

body.arax-product-page
.woocommerce-tabs
.woocommerce-Tabs-panel strong {

    color: #111;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

body.arax-product-page #tab-description ul {

    padding-right: 22px;
}

body.arax-product-page #tab-description li {

    margin-bottom: 5px;
}


/* =========================================================
   ATTRIBUTES
   ========================================================= */

body.arax-product-page
.woocommerce-product-attributes {

    width: 100%;

    margin: 0;

    border-collapse: separate;

    border-spacing: 0;

    border: 1px solid var(--arax-border);

    border-radius: 10px;

    overflow: hidden;
}

body.arax-product-page
.woocommerce-product-attributes
th,
body.arax-product-page
.woocommerce-product-attributes
td {

    padding: 11px 14px;

    border: 0;

    border-bottom: 1px solid #eeeeef;

    font-size: 12px;

    text-align: right;
}

body.arax-product-page
.woocommerce-product-attributes
tr:last-child th,
body.arax-product-page
.woocommerce-product-attributes
tr:last-child td {

    border-bottom: 0;
}

body.arax-product-page
.woocommerce-product-attributes
th {

    width: 30%;

    background: var(--arax-soft-red);

    color: var(--arax-red);

    font-weight: 800;
}

body.arax-product-page
.woocommerce-product-attributes
td {

    background: #ffffff;

    color: #222;
}


/* =========================================================
   RELATED PRODUCTS
   ========================================================= */

body.arax-product-page
.related.products {

    width: min(1240px, calc(100% - 40px));

    margin: 0 auto 60px !important;

    padding: 30px 0 0;

    border-top: 1px solid var(--arax-border);
}

body.arax-product-page
.related.products > h2 {

    margin: 0 0 20px;

    color: var(--arax-red);

    font-size: 22px;

    font-weight: 800;
}

body.arax-product-page
.related.products
ul.products {

    display: grid !important;

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

    gap: 17px;

    margin: 0 !important;

    padding: 0 !important;
}

body.arax-product-page
.related.products
ul.products
li.product {

    width: 100% !important;

    margin: 0 !important;

    padding: 13px !important;

    background: #ffffff;

    border: 1px solid var(--arax-border);

    border-radius: 12px;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);

    transition: all .2s ease;
}

body.arax-product-page
.related.products
ul.products
li.product:hover {

    transform: translateY(-3px);

    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

body.arax-product-page
.related.products
ul.products
li.product img {

    width: 100%;

    height: 190px;

    object-fit: contain;

    margin: 0 0 10px;

    border-radius: 8px;
}

body.arax-product-page
.related.products
ul.products
li.product
.woocommerce-loop-product__title {

    min-height: 47px;

    margin: 0 0 7px;

    color: #111;

    font-size: 13px;

    line-height: 1.7;

    font-weight: 800;
}

body.arax-product-page
.related.products
ul.products
li.product
.price {

    color: var(--arax-red);

    font-size: 15px;

    font-weight: 900;
}

body.arax-product-page
.related.products
ul.products
li.product
.button {

    width: 100%;

    margin-top: 8px;

    padding: 8px;

    background: var(--arax-soft-red);

    border: 1px solid #dcb4bf;

    border-radius: 7px;

    color: var(--arax-red);

    font-size: 11px;

    font-weight: 800;

    text-align: center;
}


/* =========================================================
   HIDE UNNECESSARY ASTRA / WOOCOMMERCE SPACING
   ========================================================= */

body.arax-product-page
.ast-woocommerce-container {

    padding-top: 0 !important;

    padding-bottom: 0 !important;
}

body.arax-product-page
.woocommerce {

    margin-top: 0 !important;
}

body.arax-product-page
.woocommerce-notices-wrapper {

    width: min(1240px, calc(100% - 40px));

    margin: 15px auto 0;
}


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

@media (max-width: 1000px) {

    body.arax-product-page div.product {

        grid-template-columns: 1fr;

        gap: 25px;

        margin-top: 18px !important;
    }

    body.arax-product-page
    .woocommerce-product-gallery
    .woocommerce-product-gallery__image {

        min-height: 330px;

        max-height: 400px;
    }

    body.arax-product-page
    .woocommerce-product-gallery
    .woocommerce-product-gallery__image img {

        max-height: 340px !important;
    }

    body.arax-product-page
    div.product
    .summary {

        padding-top: 0 !important;
    }

    body.arax-product-page
    .related.products
    ul.products {

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


@media (max-width: 700px) {

    .arax-product-container,
    .arax-product-breadcrumb,
    body.arax-product-page div.product,
    body.arax-product-page div.product .woocommerce-tabs,
    body.arax-product-page .related.products,
    body.arax-product-page .woocommerce-notices-wrapper {

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

    .arax-product-breadcrumb {

        min-height: 45px;

        font-size: 11px;
    }

    .arax-breadcrumb-current {

        max-width: 180px;
    }

    body.arax-product-page div.product {

        margin-top: 12px !important;

        margin-bottom: 35px !important;

        gap: 20px;
    }

    body.arax-product-page
    div.product
    .woocommerce-product-gallery {

        padding: 9px !important;

        border-radius: 12px;
    }

    body.arax-product-page
    .woocommerce-product-gallery
    .woocommerce-product-gallery__image {

        min-height: 270px;

        max-height: 330px;
    }

    body.arax-product-page
    .woocommerce-product-gallery
    .woocommerce-product-gallery__image img {

        max-height: 280px !important;

        max-width: 88% !important;
    }

    body.arax-product-page
    .flex-control-thumbs li {

        width: 52px !important;
    }

    body.arax-product-page
    .flex-control-thumbs li img {

        width: 52px !important;

        height: 52px !important;
    }

    body.arax-product-page
    div.product
    .summary
    .product_title {

        font-size: 23px;

        line-height: 1.55;
    }

    body.arax-product-page
    div.product
    .summary
    p.price {

        font-size: 26px;
    }

    .arax-product-quick-info {

        gap: 7px;
    }

    .arax-quick-item {

        flex: 1;

        min-width: 100px;
    }

    body.arax-product-page
    .woocommerce-tabs
    ul.tabs {

        display: flex;

        overflow-x: auto;

        flex-wrap: nowrap;
    }

    body.arax-product-page
    .woocommerce-tabs
    ul.tabs li {

        flex: 0 0 auto;
    }

    body.arax-product-page
    .woocommerce-tabs
    ul.tabs li a {

        padding: 10px 14px;

        font-size: 12px;
    }

    body.arax-product-page
    .woocommerce-tabs
    .woocommerce-Tabs-panel {

        padding: 18px !important;
    }

    body.arax-product-page
    .related.products
    ul.products {

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

        gap: 10px;
    }

    body.arax-product-page
    .related.products
    ul.products
    li.product img {

        height: 150px;
    }
}


@media (max-width: 450px) {

    body.arax-product-page
    div.product
    .summary
    .product_title {

        font-size: 21px;
    }

    body.arax-product-page
    .summary
    form.cart {

        padding: 9px;
    }

    body.arax-product-page
    .summary
    .single_add_to_cart_button {

        flex: 1;

        padding-left: 12px !important;

        padding-right: 12px !important;
    }

    .arax-product-quick-info {

        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .arax-meta-line {

        display: block;

        margin-bottom: 8px;
    }

    .arax-meta-line > span {

        display: block;
    }

    body.arax-product-page
    .related.products
    ul.products {

        grid-template-columns: 1fr;
    }
}


/* =========================================================
   RTL
   ========================================================= */

html[dir="rtl"]
body.arax-product-page {

    direction: rtl;
}

html[dir="rtl"]
body.arax-product-page
.quantity
.qty {

    direction: ltr;
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    body.arax-product-page
    .arax-product-whatsapp,

    body.arax-product-page
    form.cart,

    body.arax-product-page
    .related.products {

        display: none !important;
    }

}