@import url(app.css);

.title-container > .breadcrumb {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    font-size: 0.8rem;
}
.title-container > h2 {
    margin-top: 1rem;
}
.breadCrumb-container {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.5rem 2rem;
}
.breadCrumb-container > a {
    color: #0367a5;
}
.breadCrumb-container span {
    font-size: 14px;
}
.product-container {
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 2rem;
}
.product-image-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.product-image {
    border: 1px solid;
    height: 60vh;
    border-radius: 0.5rem 0.5rem 0 0;
    border-radius: 0.5rem;
}
.product-image > img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    border-radius: 0.5rem;
}
.product-image-list > ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.product-image-list > ul > li {
    bottom: 1px solid #000;
    border-radius: 0.3rem;
    height: 9rem;
}
.product-image-list > ul > li > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.product-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.product-title h2 {
    font-size: 22px;
    line-height: 25px;
}
.product-title h2::first-letter {
    text-transform: uppercase;
}
.product-details > .product-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-details > .product-title {
    margin-bottom: 0.5rem;
}
.product-details > .product-description,
.product-integration-detail > p,
.product-price-detail > p {
    font-size: 1rem;
}
.product-price-detail p::first-letter {
    text-transform: uppercase;
}
.product-description::first-letter {
    text-transform: uppercase;
}
.product-description {
    font-size: 12px;
    margin-bottom: 0.5rem;
}

.product-details > .product-action-button {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 0.5rem;
}
.product-details > .product-action-button > button {
    padding: 0.7rem;
    border-radius: 0.7rem;
    border: 2px solid var(--primary);
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}
.purchase-button {
    background: var(--primary);
    color: #fff;
}
.demo-button {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: #fff;
}
.product-price-detail {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.product-integration-detail > h3,
.product-price-detail > h3 {
    margin-bottom: 0.5rem;
    font-size: 18px;
}
.product-integration-detail p::first-letter {
    text-transform: uppercase;
}
.product-review-list {
    margin: 1.5rem 2rem;
    background: #eff9fd;
    padding: 1.5rem;
    border-radius: 0.5rem;
}
.product-review-list > .title {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
    justify-content: space-between;
}
.product-review-list > .title > select {
    width: 200px;
}
.product-review-list > .reviews {
    max-height: 70vh;
    overflow-x: auto;
}
.product-review-list > .reviews > ul {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.product-review-list > .reviews > ul > li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 1rem;
}
.product-review-list > .reviews > ul > li > .review-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-review-list > .reviews > ul > li > .review-time > .time {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    gap: 0.7rem;
}
.product-review-list > .reviews > ul > li > .title > span {
    font-weight: bold;
}
.product-review-list > .reviews > ul > li > .detail {
    font-size: 0.9rem;
}

/* Modal CSS */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 3rem;
    border-radius: 0.5rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-details {
    margin-top: 1rem;
    padding: 1.5rem;
    min-height: 40vh;
}
.modal-details h2 {
    text-align: center;
}
.modal-details p {
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}
.modal-details form {
    padding: 0 4rem;
}
.modal-details form button {
    padding: 0.7rem;
    border-radius: 0.7rem;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    color: #fff;
    background: var(--primary);
    border: none;
    margin-top: 0.5rem;
}

.thank-you-message {
    text-align: center;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem;
}
.thank-you-message > p {
    font-size: 18px;
    color: #0367a5;
    font-weight: 600;
}

.modal-details-review {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 19.2px;
}
.modal-details-review h3 {
    margin-bottom: 1rem;
}
.modal-details-review form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.modal-details-review input,
textarea,
select {
    padding: 0.7rem 0rem 0.7rem 0.7rem;
    border-radius: 4px;
    border: 1px solid;
    width: auto;
    outline: none;
    border: 1.5px solid #333;
}
.modal-details-review textarea:focus {
    border: 1.5px solid var(--primary);
}
.modal-details-review input:focus {
    border: 1.5px solid var(--primary);
}

.modal-content,
.modal-review-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    padding-bottom: 2rem;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 4rem;
    border-radius: 0.5rem;
}

.modal-review-content {
    width: 40rem;
}

.commonBtn {
    padding: 0.7rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    gap: 0.7rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    justify-content: center;
}
.addReviewBtn2 {
    display: flex;
    gap: 1rem;
}
.purchaseWrap,
.requestWrap {
    width: 40rem;
}
.selectWrapDrop {
    position: relative;
    width: 10rem;
    height: 2.7rem;
}
.addReviewBtn2 select {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1.5px solid #ccc;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}
.title,
.detail {
    font-size: 18px;
}
.title::first-letter {
    text-transform: uppercase;
}
.detail::first-letter {
    text-transform: uppercase;
}
.breadCrumb-container span::first-letter {
    text-transform: uppercase;
}

@media screen and (max-width: 768px) {
    .product-container {
        padding: 1rem;
        display: block;
        gap: 1rem;
    }
    .product-review-list {
        margin: 1rem;
        padding: 1rem;
    }
    .product-image-view {
        margin-bottom: 2rem;
    }
    .product-review-list > .title {
        display: block;
    }
    .addReviewBtn2 {
        margin-top: 1rem;
        flex-direction: column;
    }
    .product-image {
        height: 40vh;
    }
    .product-image-list > ul > li {
        height: 5.5rem;
    }
    .modal-review-content {
        width: 85%;
    }
    .purchaseWrap,
    .requestWrap {
        width: 85%;
    }
    .modal-details form {
        padding: 0;
    }
    .commonBtn {
        width: 100%;
    }
    .thank-you-message {
        padding: 1rem;
    }
    .selectWrapDrop  {
        width: 100%;
    }
    .dropDownImg {
        right: 0.5rem!important;
        top: 10px;
    }
}

.no-data-message {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 20px;
    margin: 50px auto;
}

.alert-success {
    padding: 10px;
    margin: 15px 2rem;
    border: 1px solid #d4edda;
    border-radius: 5px;
    color: #155724;
    background-color: #d4edda;
}
.product-categories-detail{
    margin-top:1rem;
}

@media screen and (min-width: 1400px) {
    .product-title h2 {
        font-size: 30px;
    }
    .product-integration-detail > h3,
    .product-price-detail > h3 {
        font-size: 20px;
    }
    .product-review-list > .title {
        font-size: 20px;
    }
    .title,
    .detail {
        font-size: 1rem;
    }
    .addReviewBtn2 select {
        font-size: 1rem;
    }
    .commonBtn {
        font-size: 1rem;
    }
    .product-details > .product-action-button > button {
        font-size: 1rem;
    }
    .modal-details form button {
        font-size: 1rem;
    }
    .form-input {
        font-size: 1rem;
    }
    .title h3{
        font-size: 20px;
    }
}
