/* ======================================== */
/* content                                  */
/* ======================================== */

.single-product-section {
    position: relative;
    min-height: 100vh;
    padding: 78px 16px;
    direction: rtl;
    overflow: hidden;
    isolation: isolate;
    color: #102f2a;
    font-family: "IRANSansWeb", "IRANSans", Tahoma, sans-serif;
}

.single-product-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
}

.single-product-section::after {
    content: "";
    position: absolute;
    width: 470px;
    height: 470px;
    left: -190px;
    bottom: -210px;
    z-index: -1;
    border-radius: 50%;
    background: rgba(26, 74, 66, 0.08);
    filter: blur(8px);
}

.single-product-section input,
.single-product-section button,
.single-product-section textarea,
.single-product-section select {
    font-family: "IRANSansWeb", "IRANSans", Tahoma, sans-serif !important;
}

.single-product-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.product-main-card {
    position: relative;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 34px;
    align-items: stretch;
    padding: 30px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.86),
            rgba(238, 245, 242, 0.58));
    box-shadow:
        0 30px 70px rgba(16, 47, 42, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.product-main-card::before,
.product-reviews-card::before,
.add-review-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 12%;
    width: 42%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(26, 74, 66, 0.34),
            transparent);
}

.product-gallery {
    position: relative;
    min-height: 100%;
}

.product-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #102f2a 0%, #1a4a42 100%);
    box-shadow: 0 14px 28px rgba(16, 47, 42, 0.22);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.6;
}

.product-image-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    height: 100%;
    padding: 34px;
    border-radius: 28px;
    border: 1px solid rgba(26, 74, 66, 0.1);
    background:
        radial-gradient(circle at 50% 48%, rgba(26, 74, 66, 0.13), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(223, 234, 230, 0.55));
    overflow: hidden;
}

.product-image-box::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(26, 74, 66, 0.08);
    filter: blur(2px);
}

.product-main-image {
    position: relative;
    z-index: 1;
    width: 82%;
    max-height: 455px;
    object-fit: contain;
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.product-image-box:hover .product-main-image {
    transform: scale(1.045) rotate(-1deg);
    filter: drop-shadow(0 22px 28px rgba(16, 47, 42, 0.14));
}

.product-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.product-label {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    margin-bottom: 13px;
    padding: 8px 15px;
    border-radius: 999px;
    color: #1a4a42;
    background: rgba(26, 74, 66, 0.08);
    border: 1px solid rgba(26, 74, 66, 0.12);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.6;
}

.product-title {
    margin: 0 0 18px;
    color: #102f2a;
    font-size: 34px;
    font-weight: 950;
    line-height: 1.65;
    letter-spacing: -0.4px;
}

.product-price-box {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.product-price {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #102f2a 0%, #1a4a42 100%);
    box-shadow: 0 18px 34px rgba(16, 47, 42, 0.2);
    font-size: 25px;
    font-weight: 950;
    line-height: 1.7;
}

.admin-description-box {
    position: relative;
    margin-bottom: 26px;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(26, 74, 66, 0.12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(238, 245, 242, 0.68));
    box-shadow:
        0 18px 38px rgba(16, 47, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.admin-description-box::before {
    content: "";
    position: absolute;
    top: -90px;
    left: -90px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(26, 74, 66, 0.08);
}

.admin-description-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-description-head span {
    width: 7px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, #102f2a, #1a4a42);
}

.admin-description-head h2 {
    margin: 0;
    color: #102f2a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.6;
}

.admin-description-box p {
    position: relative;
    margin: 0;
    color: rgba(16, 47, 42, 0.72);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 2.25;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(26, 74, 66, 0.14);
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.quantity-box button {
    width: 48px;
    height: 56px;
    border: none;
    color: #1a4a42;
    background: transparent;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.quantity-box button:hover {
    color: #ffffff;
    background: #1a4a42;
}

.quantity-box input {
    width: 58px;
    height: 56px;
    border: none;
    outline: none;
    text-align: center;
    color: #102f2a;
    background: transparent;
    font-size: 16px;
    font-weight: 950;
}

.quantity-box input::-webkit-outer-spin-button,
.quantity-box input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 34px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #102f2a 0%, #1a4a42 100%);
    text-decoration: none;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.6;
    box-shadow: 0 18px 34px rgba(16, 47, 42, 0.22);
    transition:
        transform 0.28s ease,
        filter 0.28s ease,
        box-shadow 0.28s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow: 0 24px 46px rgba(16, 47, 42, 0.28);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.product-reviews-card,
.add-review-card {
    position: relative;
    margin-top: 28px;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.84),
            rgba(238, 245, 242, 0.58));
    box-shadow:
        0 24px 58px rgba(16, 47, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.section-heading>span {
    width: 7px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, #102f2a, #1a4a42);
}

.section-heading small {
    display: block;
    margin-bottom: 3px;
    color: rgba(16, 47, 42, 0.54);
    font-size: 12.5px;
    font-weight: 850;
    line-height: 1.6;
}

.section-heading h2 {
    margin: 0;
    color: #102f2a;
    font-size: 23px;
    font-weight: 950;
    line-height: 1.6;
}

.review-list {
    display: grid;
    gap: 15px;
}

.review-item {
    position: relative;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(26, 74, 66, 0.1);
    background: rgba(255, 255, 255, 0.58);
    transition:
        transform 0.28s ease,
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.review-item:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 74, 66, 0.2);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 36px rgba(16, 47, 42, 0.1);
}

.review-header {
    margin-bottom: 13px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #102f2a 0%, #1a4a42 100%);
    box-shadow: 0 12px 24px rgba(16, 47, 42, 0.18);
    font-size: 16px;
    font-weight: 950;
}

.review-header h4 {
    margin: 0 0 4px;
    color: #102f2a;
    font-size: 15.5px;
    font-weight: 950;
    line-height: 1.6;
}

.review-header time {
    color: rgba(16, 47, 42, 0.52);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.6;
}

.review-item p {
    margin: 0;
    color: rgba(16, 47, 42, 0.68);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 2.1;
}

.review-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    color: #102f2a;
    font-size: 14.5px;
    font-weight: 950;
    line-height: 1.7;
}

.form-group label span {
    color: #c53b3b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(26, 74, 66, 0.14);
    border-radius: 17px;
    outline: none;
    color: #102f2a;
    background: rgba(255, 255, 255, 0.62);
    font-size: 14.5px;
    font-weight: 500;
    transition:
        border-color 0.28s ease,
        background 0.28s ease,
        box-shadow 0.28s ease;
}

.form-group input {
    height: 56px;
    padding: 0 16px;
}

.form-group textarea {
    min-height: 165px;
    resize: vertical;
    padding: 16px;
    line-height: 2;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(16, 47, 42, 0.42);
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1a4a42;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 4px rgba(26, 74, 66, 0.1);
}

.submit-review-btn {
    justify-self: start;
    min-height: 56px;
    padding: 0 36px;
    border: none;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #102f2a 0%, #1a4a42 100%);
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(16, 47, 42, 0.22);
    transition:
        transform 0.28s ease,
        filter 0.28s ease,
        box-shadow 0.28s ease;
}

.submit-review-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow: 0 24px 46px rgba(16, 47, 42, 0.28);
}

.submit-review-btn:active {
    transform: translateY(0);
}

.single-product-section a:focus-visible,
.single-product-section button:focus-visible,
.single-product-section input:focus-visible,
.single-product-section textarea:focus-visible {
    outline: 3px solid rgba(26, 74, 66, 0.22);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .product-main-card {
        grid-template-columns: 1fr;
    }

    .product-image-box {
        min-height: 430px;
    }

    .product-title {
        font-size: 29px;
    }
}

@media (max-width: 767px) {
    .single-product-section {
        padding: 48px 14px;
    }

    .product-main-card,
    .product-reviews-card,
    .add-review-card {
        padding: 22px;
        border-radius: 26px;
    }

    .product-image-box {
        min-height: 330px;
        padding: 24px;
        border-radius: 24px;
    }

    .product-main-image {
        width: 88%;
        max-height: 300px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 21px;
    }

    .admin-description-box {
        padding: 20px;
        border-radius: 22px;
    }

    .product-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .quantity-box {
        width: 100%;
        justify-content: space-between;
    }

    .quantity-box input {
        flex: 1;
    }

    .add-to-cart-btn,
    .submit-review-btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .single-product-section {
        padding: 38px 12px;
    }

    .product-badge {
        top: 14px;
        right: 14px;
        min-height: 34px;
        padding: 0 13px;
        font-size: 12px;
    }

    .product-image-box {
        min-height: 285px;
    }

    .product-title {
        font-size: 21px;
    }

    .product-price {
        width: 100%;
        justify-content: center;
        font-size: 19px;
    }

    .admin-description-box p,
    .review-item p {
        font-size: 13.5px;
    }

    .review-user {
        align-items: flex-start;
    }
}
