/* Main */
main {
    padding-top: 150px;
}

/* Block: Product Detail - Content */
.product-detail__content {
    margin: 0 auto;
    width: 90%;
    min-height: 500px;
    border-radius: 10px;
    background-color: #F4F6F8;
    padding: 40px 80px;
    margin-bottom: 30px;
}

/* Container chứa đường kẻ */
.product-detail__content-line {
    position: relative;
    width: 100%;
    height: 10px;
}

/* Dòng xám */
.product-detail__content-line::before {
    content: "";
    position: absolute;
    width: 45%;
    height: 2px;
    background-color: gray;
    top: 0;
    left: 0;
}

/* Dòng xanh */
.product-detail__content-line::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

/* Thông tin sản phẩm */
.product-detail__content-info {
    width: 100%;
    display: flex;
    padding: 40px;
}

/* Hình ảnh chi tiết sản phẩm */
.product-detail__content-image {
    width: 30%;
    display: flex;
}
.product-detail__content-image-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Title sản phẩm */
.product-detail__content-title {
    line-height: 30px;
    width: 60%;
    padding-top: 20px;
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    justify-content: left;
    background-color: #f5f5f5;
    border-radius: 5px;
}

/* Tên SP */
.product-detail__content-name {
    font-size: 22px;
    font-weight: bold;
}

/* Thể loại sản phẩm */
.product-detail__content-cate {
    font-size: 18px;
    margin-top: 5px;
}

/* Giá sản phẩm */
.product-detail__content-price {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}
.product-detail__content-price-old {
    text-decoration: line-through;
    color: gray;
    opacity: 0.7;
}
.product-detail__content-price-current {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Nút Thêm vào giỏ hàng */
.product-detail__add-to-cart-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 200px;
    margin-top: 10px;
}
.product-detail__add-to-cart-btn:hover {
    background-color: #45a049;
}

/* Tăng giảm số lượng */
.product-detail__quantity-control {
    margin-top: 20px;
    width: 90px;
    display: flex;
    align-items: center;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid green;
    margin-bottom: 10px;
}
.product-detail__quantity-btn {
    width: 35px;
    height: 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail__quantity-btn--decrease {
    background-color: var(--primary-color);
    color: white;
}
.product-detail__quantity-btn--increase {
    background-color: var(--primary-color);
    color: white;
}
.product-detail__quantity-input {
    width: 35px;
    height: 30px;
    text-align: center;
    font-size: 18px;
    border: none;
    outline: none;
}

/* Topping & Note */
.product-detail__content-note-topping {
    display: flex;
}
.product-detail__content-note-topping h3 {
    font-size: 18px;
    font-weight: bold;
}

/* Topping sản phẩm */
.product-detail__content-topping {
    width: 30%;
    display: flex;
    font-size: 18px;
    font-weight: bold;
    flex-direction: column;
    justify-content: left;
}
.product-detail__topping-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.product-detail__topping-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
}
.product-detail__topping-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    appearance: none;
    border: 2px solid #000;
    border-radius: 50%;
    position: relative;
}
.product-detail__topping-checkbox:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.product-detail__topping-price {
    font-weight: bold;
}

/* Note đơn hàng */
.product-detail__content-note {
    padding-left: 70px;
    width: 60%;
    display: flex;
    flex-direction: column;
}
.product-detail__note-textarea {
    width: 100%;
    height: 80px;
    font-size: 14px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid gray;
    margin-top: 10px;
}

/* Thông tin cửa hàng */
.product-detail__info {
    margin: 0 auto;
    width: 90%;
    margin-bottom: 30px;
}

/* Cửa hàng (bubble left) */
.product-detail__info-shop {
    display: flex;
    background-color: #F4F6F8;
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 10px;
}
.product-detail__info-image {
    display: flex;
    width: 20%;
    justify-content: center;
    align-items: center;
}

.product-detail__info-image-img {
    width: 70px;
    height: 70px;
    display: block;
    border-radius: 50%;
}

.product-detail__info-name {
    display: flex;
    margin-top: 10px;
    width: 50%;
    flex-direction: column;
}

.product-detail__info-name--link {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.product-detail__info-quantityproduct {
    font-size: 16px;
    margin-top: 3px;
    color: #666;
}

/* Nút Xem Shop */
.product-detail__info--view-btn {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 150px;
    margin-top: 20px;
}

.product-detail__info--view-icon {
    font-size: 18px;
}

.product-detail__info--view-btn:hover {
    background-color: #45a049;
}

/* Thông tin giao hàng (bubble right) */
.product-detail__shop-info {
    position: relative;
    background-color: #F4F6F8;
    border-radius: 50px;
    margin-bottom: 10px;
}

.product-detail__delivery-info {
    display: flex;
    gap: 12px;
}

.product-detail__delivery-icon {
    font-size: 45px;
    color: var(--primary-color);
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
}

.product-detail__delivery-text {
    margin-top: 17px;
    display: flex;
    flex-direction: column;
}

.product-detail__delivery-title {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
}

.product-detail__delivery-subtitle {
    font-size: 16px;
    margin-top: 3px;
    color: #666;
}

/* Sản phẩm liên quan */
.product-detail__moreproduct {
    margin: 0 auto;
    width: 90%;
    margin-top: 50px;
    margin-bottom: 50px;
}

.product-detail__moreproduct h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.product-related__item {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.product-related__item-img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-related__item-name a{

    color: var(--primary-color);
    font-size: 16px;
    margin: 10px 0 5px;
}

.product-related__item-cate {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-related__item-price {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-related__item-price span {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
    font-weight: normal;
}

.product-related__item-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.product-related__item-btn:hover {
    background-color: #45a049;
}

/* Responsive cho mobile (dưới 740px) */
@media (max-width: 739px) {
    main {
        padding: 40px 0;
    }

    .product-detail__content {
        width: 100%;
        padding: 20px;
        min-height: 400px;
    }

    .product-detail__content-info {
        flex-direction: column;
        padding: 20px;
    }

    .product-detail__content-image {
        width: 100%;
        margin-bottom: 20px;
    }

    .product-detail__content-image-img {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .product-detail__content-title {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }

    .product-detail__content-name {
        font-size: 18px;
    }

    .product-detail__content-cate {
        font-size: 14px;
    }

    .product-detail__content-price {
        font-size: 16px;
        justify-content: center;
    }

    .product-detail__content-price-current {
        font-size: 18px;
    }

    .product-detail__quantity-control {
        justify-content: center;
        margin: 15px auto;
        width: 100px;
    }

    .product-detail__quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .product-detail__quantity-input {
        width: 50px;
        height: 30px;
    }

    .product-detail__add-to-cart-btn {
        width: 100%;
        margin: 0 auto;
        padding: 12px;
    }

    .product-detail__content-note-topping {
        flex-direction: column;
    }

    .product-detail__content-topping {
        width: 100%;
        margin-bottom: 20px;
    }

    .product-detail__content-note {
        width: 100%;
        padding-left: 0;
    }

    .product-detail__note-textarea {
        width: 100%;
        height: 100px;
    }

    .product-detail__info {
        width: 100%;
    }

    .product-detail__info-shop,
    .product-detail__shop-info {
        width: 100%;
        margin-bottom: 15px;
    }

    .product-detail__info-shop::before {
        left: 10px;
    }

    .product-detail__shop-info::before {
        right: 10px;
    }

    .product-detail__info-image-img {
        margin-left: -20px;
        width: 40px;
        height: 40px;
    }

    .product-detail__info-name--link {
        margin-left: -10px;
        font-size: 16px;
    }

    .product-detail__info-quantityproduct {
        font-size: 14px;
        margin-left: -10px;
        margin-bottom: 3px;
    }

    .product-detail__info--view-btn {
        padding: 6px 14px;
        font-size: 12px;
        width: 130px;
    }

    .product-detail__delivery-icon {
        font-size: 40px;
        padding-right: 10px;
        margin-bottom: 30px;
    }

    .product-detail__delivery-text {
        font-size: 14px;
    }

    .product-detail__delivery-title {
        font-size: 16px;
    }

    .product-detail__delivery-subtitle {
        font-size: 14px;
    }

    .product-related__item-img {
        max-width: 120px;
        height: auto;
    }

    .product-related__item-name {
        font-size: 14px;
    }

    .product-related__item-price {
        font-size: 14px;
    }

    .product-related__item-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Responsive cho tablet (740px - 1024px) */
@media (min-width: 740px) and (max-width: 1024px) {
    main {
        padding: 60px 0;
    }

    .product-detail__content {
        width: 90%;
        padding: 30px 60px;
        min-height: 450px;
    }

    .product-detail__content-info {
        padding: 30px;
    }

    .product-detail__content-image-img {
        max-width: 250px;
    }

    .product-detail__content-title {
        padding-left: 30px;
    }

    .product-detail__content-name {
        font-size: 20px;
    }

    .product-detail__content-cate {
        font-size: 16px;
    }

    .product-detail__content-price {
        font-size: 16px;
    }

    .product-detail__content-price-current {
        font-size: 20px;
    }

    .product-detail__add-to-cart-btn {
        width: 110%;
        margin: 0 auto;
    }

    .product-detail__quantity-control {
        width: 100px;
    }

    .product-detail__content-note-topping {
        flex-direction: column;
    }

    .product-detail__content-topping {
        width: 100%;
        margin-bottom: 20px;
    }
    .product-detail__topping-item span{
        font-size: 14px;
    }
    .product-detail__content-note {
        width: 100%;
        padding-left: 0;
    }

    .product-detail__note-textarea {
        width: 90%;
        height: 90px;
    }

    .product-detail__info-shop,
    .product-detail__shop-info {
        width: 100%;
        margin-bottom: 10px;
        display: flex;
    }
    .product-detail__info-image-img {
        margin-left: -15px;
        width: 45px;
        height: 45px;
    }

    .product-detail__info-name--link {
        margin-left: -20px;
        font-size: 17px;
    }

    .product-detail__info-quantityproduct {
        margin-left: -20px;
        font-size: 15px;
    }

    .product-detail__info--view-btn {
        padding: 7px 14px;
        font-size: 13px;
        width: 130px;
    }

    .product-detail__delivery-icon {
        font-size: 40px;
        padding-right: 12px;
        margin-bottom: 15px;
        margin-left: 10px;
    }

    .product-detail__delivery-text {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .product-detail__delivery-title {
        font-size: 17px;
    }

    .product-detail__delivery-subtitle {
        font-size: 15px;
    }

    .product-related__item-img {
        max-width: 130px;
    }

    .product-related__item-name {
        font-size: 15px;
    }

    .product-related__item-price {
        font-size: 15px;
    }

    .product-related__item-btn {
        padding: 7px 13px;
        font-size: 13px;
    }
}

/* Giữ nguyên desktop (trên 1024px) - không thay đổi */
@media (min-width: 1025px) {
    /* Không cần thay đổi vì giao diện desktop đã ổn */
}