.woocommerce-shop .java-shop-landing {
    direction: rtl;
    margin: 18px auto 28px;
    color: #202124;
    font-family: inherit;
}
.woocommerce-shop .java-shop-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #f2f7fc 100%);
}
.woocommerce-shop .java-shop-eyebrow {
    color: #087e8b;
    font-size: 13px;
    font-weight: 700;
}
.woocommerce-shop .java-shop-intro h2 {
    margin: 8px 0;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.5;
}
.woocommerce-shop .java-shop-intro p {
    margin: 0;
    color: #606b78;
    line-height: 1.9;
}
.woocommerce-shop .java-shop-search {
    display: flex;
    flex: 0 1 440px;
    min-width: 240px;
    overflow: hidden;
    border: 1px solid #d6dce4;
    border-radius: 10px;
    background: #fff;
}
.woocommerce-shop .java-shop-search input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 13px;
    border: 0;
    outline: 0;
    background: transparent;
}
.woocommerce-shop .java-shop-search button {
    flex-shrink: 0;
    padding: 0 20px;
    border: 0;
    background: #ffcf54;
    color: #202124;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.woocommerce-shop .java-shop-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0 14px;
}
.woocommerce-shop .java-shop-section-heading h2 {
    margin: 0;
    font-size: 21px;
}
.woocommerce-shop .java-shop-section-heading > span {
    color: #687385;
    font-size: 13px;
}
.woocommerce-shop .java-shop-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.woocommerce-shop .java-shop-category {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 17px;
    border: 1px solid #e2e7ed;
    border-radius: 12px;
    background: #fff;
    color: #202124;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.woocommerce-shop .java-shop-category:hover {
    transform: translateY(-2px);
    border-color: #8bbcc4;
    box-shadow: 0 6px 20px rgba(25, 50, 70, .08);
}
.woocommerce-shop .java-shop-category-name {
    font-weight: 700;
    line-height: 1.8;
}
.woocommerce-shop .java-shop-category-link {
    color: #087e8b;
    font-size: 12px;
}
@media (max-width: 900px) {
    .woocommerce-shop .java-shop-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .woocommerce-shop .java-shop-intro {
        align-items: stretch;
        flex-direction: column;
    }
    .woocommerce-shop .java-shop-search {
        flex-basis: auto;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .woocommerce-shop .java-shop-landing {
        margin: 12px 0 20px;
    }
    .woocommerce-shop .java-shop-intro {
        gap: 18px;
        padding: 18px;
        border-radius: 12px;
    }
    .woocommerce-shop .java-shop-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
    .woocommerce-shop .java-shop-category {
        min-height: 82px;
        padding: 12px;
    }
    .woocommerce-shop .java-shop-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   Java Pro — Shop Hero matching the homepage visual identity
   Only the shop introduction box is restyled.
   ========================================================= */

.woocommerce-shop .java-shop-landing {
    color: #fff;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

.woocommerce-shop .java-shop-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    gap: 28px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(192, 132, 252, .25);
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(139, 92, 246, .30),
            transparent 45%
        ),
        radial-gradient(
            circle at 5% 100%,
            rgba(217, 70, 239, .16),
            transparent 35%
        ),
        radial-gradient(
            circle at 100% 80%,
            rgba(34, 211, 238, .12),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #03020a 0%,
            #080516 48%,
            #100523 100%
        );
    box-shadow: 0 18px 50px rgba(3, 2, 10, .18);
}

.woocommerce-shop .java-shop-intro::before,
.woocommerce-shop .java-shop-intro::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(75px);
    pointer-events: none;
}

.woocommerce-shop .java-shop-intro::before {
    top: -140px;
    left: -70px;
    background: rgba(124, 58, 237, .24);
}

.woocommerce-shop .java-shop-intro::after {
    right: -100px;
    bottom: -160px;
    background: rgba(34, 211, 238, .13);
}

.woocommerce-shop .java-shop-intro > * {
    position: relative;
    z-index: 1;
}

.woocommerce-shop .java-shop-eyebrow {
    display: inline-block;
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 800;
}

.woocommerce-shop .java-shop-intro h2 {
    color: #fff;
    font-weight: 900;
    letter-spacing: -.4px;
    line-height: 1.5;
}

.woocommerce-shop .java-shop-intro p {
    color: #c4bbd5;
    line-height: 2;
}

.woocommerce-shop .java-shop-search {
    flex: 0 1 440px;
    min-height: 52px;
    border: 1px solid rgba(196, 181, 253, .30);
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .15);
}

.woocommerce-shop .java-shop-search input[type="search"] {
    color: #171124;
    font-family: inherit;
}

.woocommerce-shop .java-shop-search input[type="search"]::placeholder {
    color: #82788f;
}

.woocommerce-shop .java-shop-search button {
    padding: 0 22px;
    background: linear-gradient(100deg, #c084fc, #8b5cf6);
    color: #fff;
    font-family: inherit;
    transition: filter .2s, box-shadow .2s;
}

.woocommerce-shop .java-shop-search button:hover {
    filter: brightness(1.12);
    box-shadow: 0 0 22px rgba(168, 85, 247, .25);
}

@media (max-width: 600px) {
    .woocommerce-shop .java-shop-intro {
        gap: 18px;
        padding: 22px 18px;
        border-radius: 17px;
    }

    .woocommerce-shop .java-shop-search {
        min-width: 0;
    }

    .woocommerce-shop .java-shop-search button {
        padding: 0 15px;
    }
}


/* Shop category card images */
.woocommerce-shop .java-shop-category-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(145deg, #100523, #211238);
    aspect-ratio: 16 / 9;
}
.woocommerce-shop .java-shop-category-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.woocommerce-shop .java-shop-category {
    overflow: hidden;
}
.woocommerce-shop .java-shop-category-name {
    color: inherit;
}

/* =========================================================
   JAVA SHOP SHORTCODE BEAUTY V1
   Scoped only to shortcode output; preserves existing pages.
   ========================================================= */

.java-shop-shortcode {
    direction: rtl;
    box-sizing: border-box;
    max-width: 1240px;
    margin: 28px auto;
    padding: clamp(16px, 3vw, 30px);
    overflow: hidden;
    color: #f8f5ff;
    font-family: inherit;
    border: 1px solid rgba(167, 139, 250, .24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 0%, rgba(124, 58, 237, .20), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(6, 182, 212, .10), transparent 30%),
        linear-gradient(145deg, #080612 0%, #100a20 55%, #090817 100%);
    box-shadow: 0 18px 45px rgba(10, 5, 25, .12);
}

.java-shop-shortcode *,
.java-shop-shortcode *::before,
.java-shop-shortcode *::after {
    box-sizing: border-box;
}

.java-shop-shortcode .java-shop-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 22px;
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(196, 181, 253, .17);
}

.java-shop-shortcode .java-shop-section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(19px, 2.2vw, 26px);
    font-weight: 900;
    line-height: 1.7;
}

.java-shop-shortcode .java-shop-section-heading > span {
    color: #c4b5fd;
    font-size: 13px;
    line-height: 1.8;
}

.java-shop-shortcode .java-shop-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
}

.java-shop-shortcode .java-shop-category {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(196, 181, 253, .20);
    border-radius: 18px;
    background: linear-gradient(155deg, #19132b 0%, #100d1d 100%);
    color: #fff;
    text-align: right;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.java-shop-shortcode .java-shop-category:hover {
    transform: translateY(-5px);
    border-color: rgba(103, 232, 249, .65);
    color: #fff;
    box-shadow: 0 15px 32px rgba(0, 0, 0, .28), 0 0 0 1px rgba(103, 232, 249, .06);
}

.java-shop-shortcode .java-shop-category-media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #241640, #111827);
}

.java-shop-shortcode .java-shop-category-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.java-shop-shortcode .java-shop-category:hover .java-shop-category-image {
    transform: scale(1.055);
    filter: saturate(1.08);
}

.java-shop-shortcode .java-shop-category-name {
    display: block;
    min-height: 48px;
    padding: 13px 15px 0;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.java-shop-shortcode .java-shop-category-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin: 9px 15px 16px;
    padding: 7px 11px;
    border: 1px solid rgba(103, 232, 249, .22);
    border-radius: 9px;
    background: rgba(103, 232, 249, .07);
    color: #67e8f9;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    transition: background .2s ease, color .2s ease;
}

.java-shop-shortcode .java-shop-category:hover .java-shop-category-link {
    background: rgba(103, 232, 249, .15);
    color: #a5f3fc;
}

.java-shop-shortcode .java-shop-category:focus-visible {
    outline: 2px solid #67e8f9;
    outline-offset: 3px;
}

@media (max-width: 1000px) {
    .java-shop-shortcode .java-shop-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .java-shop-shortcode {
        margin: 18px 10px;
        padding: 15px;
        border-radius: 18px;
    }

    .java-shop-shortcode .java-shop-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 16px;
        padding-bottom: 13px;
    }

    .java-shop-shortcode .java-shop-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .java-shop-shortcode .java-shop-category {
        border-radius: 13px;
    }

    .java-shop-shortcode .java-shop-category-media {
        aspect-ratio: 1 / 1;
    }

    .java-shop-shortcode .java-shop-category-name {
        min-height: 44px;
        padding: 10px 10px 0;
        font-size: 13px;
    }

    .java-shop-shortcode .java-shop-category-link {
        margin: 7px 10px 11px;
        padding: 6px 8px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .java-shop-shortcode .java-shop-category,
    .java-shop-shortcode .java-shop-category-image,
    .java-shop-shortcode .java-shop-category-link {
        transition: none;
    }
}

/* Java Shop — premium category cards */
.woocommerce-shop .java-shop-shortcode {
    color: #202124;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

.woocommerce-shop .java-shop-shortcode .java-shop-section-heading {
    align-items: center;
    margin: 30px 0 18px;
    padding: 18px 20px;
    border: 1px solid #ece8f7;
    border-radius: 16px;
    background: linear-gradient(120deg, #fff 0%, #f8f6ff 100%);
}

.woocommerce-shop .java-shop-shortcode .java-shop-section-heading h2 {
    position: relative;
    margin: 0;
    color: #211735;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 900;
    line-height: 1.8;
}

.woocommerce-shop .java-shop-shortcode .java-shop-section-heading h2::after {
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 5px;
    border-radius: 4px;
    background: linear-gradient(90deg, #8b5cf6, #22d3ee);
    content: "";
}

.woocommerce-shop .java-shop-shortcode .java-shop-section-heading > span {
    color: #746b83;
    font-size: 13px;
    line-height: 1.9;
}

.woocommerce-shop .java-shop-shortcode .java-shop-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.woocommerce-shop .java-shop-shortcode .java-shop-category {
    position: relative;
    min-width: 0;
    min-height: 0;
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
    padding: 0 0 17px;
    border: 1px solid #e9e5f1;
    border-radius: 17px;
    background: #fff;
    color: #211735;
    box-shadow: 0 4px 16px rgba(37, 20, 65, .045);
    text-decoration: none;
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.woocommerce-shop .java-shop-shortcode .java-shop-category:hover {
    transform: translateY(-4px);
    border-color: #c4b5fd;
    background: #fff;
    box-shadow: 0 14px 30px rgba(66, 35, 112, .12);
}

.woocommerce-shop .java-shop-shortcode .java-shop-category-media {
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 10;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    background: linear-gradient(145deg, #faf8ff 0%, #f0f7ff 100%);
}

.woocommerce-shop .java-shop-shortcode .java-shop-category-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 9px;
    object-fit: contain;
    transition: transform .25s ease;
}

.woocommerce-shop .java-shop-shortcode .java-shop-category:hover .java-shop-category-image {
    transform: scale(1.045);
}

.woocommerce-shop .java-shop-shortcode .java-shop-category-name {
    display: block;
    padding: 16px 16px 0;
    color: #211735;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.woocommerce-shop .java-shop-shortcode .java-shop-category-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    margin: 12px 16px 0;
    padding: 7px 11px;
    border: 1px solid #e8defd;
    border-radius: 9px;
    background: #f8f5ff;
    color: #7040c7;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
    transition: background .2s ease, color .2s ease;
}

.woocommerce-shop .java-shop-shortcode .java-shop-category:hover .java-shop-category-link {
    border-color: #8b5cf6;
    background: #8b5cf6;
    color: #fff;
}

.woocommerce-shop .java-shop-shortcode .java-shop-category:focus-visible {
    outline: 3px solid #8b5cf6;
    outline-offset: 3px;
}

@media (max-width: 1000px) {
    .woocommerce-shop .java-shop-shortcode .java-shop-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .woocommerce-shop .java-shop-shortcode .java-shop-section-heading {
        align-items: flex-start;
        gap: 5px;
        margin: 20px 0 12px;
        padding: 14px;
        border-radius: 13px;
    }

    .woocommerce-shop .java-shop-shortcode .java-shop-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .woocommerce-shop .java-shop-shortcode .java-shop-category {
        border-radius: 13px;
        padding-bottom: 12px;
    }

    .woocommerce-shop .java-shop-shortcode .java-shop-category-media {
        padding: 8px;
    }

    .woocommerce-shop .java-shop-shortcode .java-shop-category-name {
        padding: 12px 11px 0;
        font-size: 13px;
    }

    .woocommerce-shop .java-shop-shortcode .java-shop-category-link {
        margin: 9px 11px 0;
        padding: 6px 8px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .woocommerce-shop .java-shop-shortcode .java-shop-category,
    .woocommerce-shop .java-shop-shortcode .java-shop-category-image,
    .woocommerce-shop .java-shop-shortcode .java-shop-category-link {
        transition: none;
    }

    .woocommerce-shop .java-shop-shortcode .java-shop-category:hover,
    .woocommerce-shop .java-shop-shortcode .java-shop-category:hover .java-shop-category-image {
        transform: none;
    }
}
/* End Java Shop premium category cards */


/* Java Shop products section */
.woocommerce-shop .java-shop-products-section {
    margin: 26px 0 18px;
    padding: 0;
    direction: rtl;
}

.woocommerce-shop .java-shop-products-heading {
    padding: 20px 22px;
    border: 1px solid rgba(139, 92, 246, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f8f5ff);
    box-shadow: 0 8px 24px rgba(45, 25, 80, .05);
}

.woocommerce-shop .java-shop-products-eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #8050cf;
    font-size: 12px;
    font-weight: 800;
}

.woocommerce-shop .java-shop-products-heading h2 {
    margin: 0;
    color: #211735;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.7;
}

.woocommerce-shop .java-shop-products-heading p {
    margin: 3px 0 0;
    color: #71677f;
    font-size: 13px;
    line-height: 1.9;
}

.woocommerce-shop ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px !important;
    margin-top: 18px !important;
}

.woocommerce-shop ul.products::before,
.woocommerce-shop ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce-shop ul.products li.product {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #eee8f8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(40, 20, 70, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.woocommerce-shop ul.products li.product:hover {
    transform: translateY(-3px);
    border-color: #d9c7fb;
    box-shadow: 0 12px 26px rgba(60, 30, 100, .10);
}

.woocommerce-shop ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 0 12px;
    border-radius: 10px;
    background: #faf9fd;
}

.woocommerce-shop ul.products li.product .woocommerce-loop-product__title {
    padding: 0;
    color: #211735;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.9;
}

.woocommerce-shop ul.products li.product .price {
    margin: 9px 0;
    color: #7040c7;
    font-size: 15px;
    font-weight: 900;
}

.woocommerce-shop ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 13px;
    border: 0;
    border-radius: 10px;
    background: #7040c7;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.8;
}

.woocommerce-shop ul.products li.product .button:hover {
    background: #5425a6;
    color: #fff;
}

@media (max-width: 900px) {
    .woocommerce-shop ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px !important;
    }
}

@media (max-width: 600px) {
    .woocommerce-shop .java-shop-products-section {
        margin-top: 20px;
    }

    .woocommerce-shop .java-shop-products-heading {
        padding: 14px;
        border-radius: 13px;
    }

    .woocommerce-shop .java-shop-products-heading h2 {
        font-size: 19px;
    }

    .woocommerce-shop ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
        margin-top: 12px !important;
    }

    .woocommerce-shop ul.products li.product {
        padding: 9px;
        border-radius: 12px;
    }

    .woocommerce-shop ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px;
    }

    .woocommerce-shop ul.products li.product .price {
        font-size: 13px;
    }

    .woocommerce-shop ul.products li.product .button {
        width: 100%;
        padding: 7px 5px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .woocommerce-shop ul.products li.product {
        transition: none;
    }

    .woocommerce-shop ul.products li.product:hover {
        transform: none;
    }
}

/* JAVA SINGLE PRODUCT DESIGN V1 */
body.single-product div.product {
    font-family: Vazirmatn, Tahoma, sans-serif;
    line-height: 1.9;
    color: #29243a;
}

body.single-product div.product .product_title {
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.9;
    margin: 0 0 18px;
    color: #29243a;
}

body.single-product div.product .woocommerce-product-gallery {
    overflow: hidden;
    border: 1px solid #eee8f5;
    border-radius: 18px;
    padding: 12px;
    background: #fff;
}

body.single-product div.product .woocommerce-product-gallery img {
    border-radius: 12px;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
    color: #6d35b1;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 2;
}

body.single-product div.product .woocommerce-product-details__short-description {
    font-size: 0.98rem;
    line-height: 2.1;
    color: #514b5d;
    margin: 18px 0;
}

body.single-product div.product form.cart {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid #eee8f5;
    border-radius: 16px;
    background: #faf8fd;
}

body.single-product div.product form.cart .quantity .qty {
    min-height: 46px;
    border: 1px solid #ddd2ec;
    border-radius: 10px;
    padding: 8px;
}

body.single-product div.product .single_add_to_cart_button {
    min-height: 46px;
    padding: 12px 25px;
    border: 0;
    border-radius: 12px;
    background: #6d35b1;
    color: #fff;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

body.single-product div.product .single_add_to_cart_button:hover {
    background: #54258f;
    color: #fff;
    transform: translateY(-1px);
}

body.single-product .woocommerce-tabs {
    margin-top: 35px;
}

body.single-product .woocommerce-tabs ul.tabs {
    padding-right: 0;
    border-bottom: 1px solid #e9e1f2;
}

body.single-product .woocommerce-tabs ul.tabs li {
    border-radius: 10px 10px 0 0;
}

body.single-product .woocommerce-Tabs-panel,
body.single-product .related.products {
    line-height: 2;
}

body.single-product .related.products > h2,
body.single-product .woocommerce-tabs .panel > h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    body.single-product div.product .product_title {
        font-size: 1.25rem;
    }

    body.single-product div.product .woocommerce-product-gallery {
        border-radius: 14px;
        padding: 8px;
    }

    body.single-product div.product p.price,
    body.single-product div.product span.price {
        font-size: 1.3rem;
    }

    body.single-product div.product form.cart {
        padding: 12px;
    }

    body.single-product div.product .single_add_to_cart_button {
        max-width: 100%;
        white-space: normal;
    }
}

/* JAVA SINGLE PRODUCT DESIGN V2 */

/* فونت محلی قالب جاوا */
@font-face {
    font-family: "JavaVazirmatn";
    src: url("../fonts/vazirmatn/vazirmatn-400.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "JavaVazirmatn";
    src: url("../fonts/vazirmatn/vazirmatn-500.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "JavaVazirmatn";
    src: url("../fonts/vazirmatn/vazirmatn-600.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "JavaVazirmatn";
    src: url("../fonts/vazirmatn/vazirmatn-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "JavaVazirmatn";
    src: url("../fonts/vazirmatn/vazirmatn-800.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

body.single-product {
    --java-product-accent: #6d35b1;
    --java-product-accent-dark: #54258f;
    --java-product-border: #ece6f3;
    --java-product-muted: #625b6d;
    font-family: "JavaVazirmatn", Tahoma, sans-serif;
}

body.single-product div.product,
body.single-product div.product :is(h1,h2,h3,p,span,a,label,button,input,select,textarea,th,td,li) {
    font-family: "JavaVazirmatn", Tahoma, sans-serif;
}

body.single-product div.product {
    color: #29243a;
    line-height: 1.95;
}

body.single-product div.product .product_title {
    margin: 0 0 18px;
    font-size: clamp(1.3rem, 2.1vw, 1.9rem);
    font-weight: 800;
    line-height: 1.9;
    color: #29243a;
}

body.single-product div.product .woocommerce-product-gallery {
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--java-product-border);
    border-radius: 20px;
    background: #fff;
}

body.single-product div.product .woocommerce-product-gallery img {
    border-radius: 12px;
}

body.single-product div.product .summary {
    line-height: 2;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
    color: var(--java-product-accent);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 2;
}

body.single-product div.product .woocommerce-product-details__short-description {
    margin: 18px 0;
    color: var(--java-product-muted);
    font-size: .97rem;
    line-height: 2.2;
}

body.single-product div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    padding: 18px;
    border: 1px solid var(--java-product-border);
    border-radius: 16px;
    background: #faf8fd;
}

body.single-product div.product form.cart .quantity .qty {
    min-height: 46px;
    max-width: 100px;
    padding: 8px;
    border: 1px solid #ded3ed;
    border-radius: 10px;
    font-family: "JavaVazirmatn", Tahoma, sans-serif;
}

body.single-product div.product .single_add_to_cart_button {
    min-height: 46px;
    padding: 11px 24px;
    border: 0;
    border-radius: 12px;
    background: var(--java-product-accent);
    color: #fff;
    font-size: .98rem;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

body.single-product div.product .single_add_to_cart_button:hover {
    background: var(--java-product-accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

body.single-product div.product .stock {
    font-weight: 600;
}

body.single-product .woocommerce-tabs {
    margin-top: 36px;
    padding: 18px;
    border: 1px solid var(--java-product-border);
    border-radius: 16px;
    background: #fff;
}

body.single-product .woocommerce-tabs ul.tabs {
    padding-right: 0;
    border-bottom: 1px solid var(--java-product-border);
}

body.single-product .woocommerce-tabs ul.tabs li {
    border-radius: 10px 10px 0 0;
}

body.single-product .woocommerce-Tabs-panel {
    color: #393345;
    font-size: .96rem;
    line-height: 2.2;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
    margin-bottom: 18px;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.9;
}

body.single-product .woocommerce-Tabs-panel table th,
body.single-product .woocommerce-Tabs-panel table td {
    padding: 12px;
    border-color: var(--java-product-border);
    line-height: 1.9;
}

body.single-product .related.products,
body.single-product .upsells.products {
    margin-top: 36px;
}

@media (max-width: 767px) {
    body.single-product div.product .product_title {
        font-size: 1.25rem;
    }

    body.single-product div.product .woocommerce-product-gallery {
        padding: 8px;
        border-radius: 14px;
    }

    body.single-product div.product form.cart {
        gap: 10px;
        padding: 12px;
    }

    body.single-product div.product .single_add_to_cart_button {
        max-width: 100%;
        white-space: normal;
    }

    body.single-product .woocommerce-tabs {
        padding: 12px;
    }

    body.single-product .woocommerce-Tabs-panel {
        overflow-wrap: anywhere;
    }
}
