/* CSS cho trang chitietsp.php, font chữ to và rõ như daily.php */

/* --- Style chung --- */
body, html {
    font-family: 'Roboto', sans-serif;
    font-size: 14px; /* Tương đương 1rem = 16px */
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

/* --- Container và layout chính --- */
.chitietsp-container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 15px;
    box-sizing: border-box;
}

/* --- Breadcrumb --- */
.chitietsp-breadcrumb {
    padding: 0.5rem 0;
    margin-bottom: -5px;
    margin-top: 10px;
}
.chitietsp-breadcrumb .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    background: none;
    padding: 0;
    margin: 0;
    font-size: 1rem; /* 16px */
}
.chitietsp-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.chitietsp-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 8px;
    color: #6c757d;
}
.chitietsp-breadcrumb .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}
.chitietsp-breadcrumb .breadcrumb-item.active {
    color: #333;
    max-width: 120px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* --- Ảnh sản phẩm --- */
.chitietsp-image-main {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    aspect-ratio: 1/1;
}
.product-main-img {
    max-width: 400px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.discount-label {
    position: absolute;
    bottom: 8px;
    left: 25px;
    background-color: rgb(0, 136, 255);
    color: #fff;
    font-size: 0.75rem; /* 12px */
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    height: 38px;
    line-height: 12px;
    display: flex;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: glow 1.5s infinite alternate;
    z-index: 10;
}
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
    }
}
.chitietsp-thumbs-container {
    width: 100%;
    max-width: 410px;
    height: 130px;
    margin: 10px auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.chitietsp-thumbs-wrapper {
    width: 390px;
    height: 130px;
    overflow-x: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    display: flex;
    align-items: center;
}
.chitietsp-thumbs-slide {
    display: inline-flex;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}
.product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}
.product-thumb-img.active {
    border: 2px solid #007bff;
}
.thumb-nav-prev,
.thumb-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 1rem; /* 16px */
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 10;
}
.thumb-nav-prev:hover,
.thumb-nav-next:hover {
    opacity: 1;
}
.thumb-nav-prev {
    left: -40px;
}
.thumb-nav-next {
    right: -40px;
}
.thumb-nav-prev.disabled,
.thumb-nav-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --- Thông tin sản phẩm --- */
.chitietsp-price-col {
    padding: 15px;
    padding-left: 20px;
    position: relative;
}
.chitietsp-price-col::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 1px;
    height: 100%;
    background-color: #ddd;
}
.chitietsp-price-col p {
    padding: 5px 0;
    font-size: 1.1rem; /* 17.6px, như .welcome-left p */
    color: #555;
}
.chitietsp-price-col .h4 {
    font-size: 1.5rem; /* 24px */
    color: #007bff;
}
.chitietsp-price-col del {
    font-size: 1rem; /* 16px */
    color: #999;
}
#cart-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
#soluong {
    width: 100px;
    height: 40px;
    font-size: 1rem; /* 16px */
}
.chitietsp-btn-success {
    padding: 10px 20px;
    font-size: 1.1rem; /* 17.6px */
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}
.chitietsp-btn-success:hover {
    background-color: #218838;
    transform: scale(1.05);
}
.chitietsp-product-specs {
    padding: 10px;
}
.chitietsp-product-specs h5 {
    padding: 5px 0 10px 0;
    font-size: 1.2rem; /* 19.2px, như .welcome-left h4 */
    font-weight: 600;
    color: #222;
}
.chitietsp-product-specs ul {
    list-style: none;
    padding: 0;
    font-size: 1.1rem; /* 17.6px */
    color: #555;
}
.chitietsp-product-specs li {
    margin-bottom: 10px;
}
.chitietsp-product-specs ul li a {
    white-space: nowrap;
    display: inline;
    color: #007bff;
    text-decoration: underline;
}

/* --- Tabs và đánh giá --- */
.chitietsp-nav-tabs {
    border-bottom: 1px solid #ddd;
}
.chitietsp-nav-tabs .nav-link {
    font-size: 1.1rem; /* 17.6px */
    padding: 10px 20px;
    color: #333;
}
.chitietsp-nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    background-color: #f8f9fa;
}
.chitietsp-rating-stars {
    font-size: 1.2rem; /* 19.2px */
    color: #ffd700;
}
.form-group .form-label {
    font-size: 1rem; /* 16px */
    margin-bottom: 10px;
}
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem; /* 16px */
    border-radius: 5px;
}
.chitietsp-btn-primary {
    padding: 10px 20px;
    font-size: 1.1rem; /* 17.6px */
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}
.chitietsp-btn-primary:hover {
    background-color: #0056b3;
}

/* --- Toast --- */
.chitietsp-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    min-width: 250px;
}
.chitietsp-toast.show {
    display: block;
}
.toast-header {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}
.toast-header strong {
    flex: 1;
}
.toast-body {
    padding: 15px;
}

/* --- Sản phẩm giảm giá và bán chạy --- */
.chitietsp-discount-products, .chitietsp-hot-products {
    padding: 15px 10px;
    background-color: #f5f5f5;
}
.chitietsp-discount-products h5, .chitietsp-hot-products h5 {
    font-size: 1.2rem; /* 19.2px */
    margin-bottom: 15px;
    font-weight: 600;
    color: #222;
}
.chitietsp-hot-product {
    display: flex;
    align-items: center;
    margin-top: 15px;
    text-decoration: none;
    color: inherit;
}
.chitietsp-hot-product img.chitietsp-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
}
.chitietsp-hot-product-info {
    flex: 1;
    padding: 5px;
}
.chitietsp-hot-product-info p {
    margin: 0;
    font-size: 1rem; /* 16px */
    color: #555;
}
.chitietsp-hot-product-info .product-price {
    color: #333;
}
.chitietsp-hot-product-info .item_price {
    color: #007bff;
    font-weight: bold;
    font-size: 1rem; /* 16px */
}
.chitietsp-hot-product-info del {
    color: #999;
    font-size: 1rem; /* 16px */
    margin-left: 5px;
}
.chitietsp-hot-product:hover {
    text-decoration: underline;
}

/* --- Mô tả sản phẩm --- */
.mtsp-description {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem; /* 17.6px, như .welcome-left p */
    line-height: 1.8;
    color: #555;
}
.mtsp-description h2 {
    font-size: 1.6rem; /* 25.6px, như .tittle-w3l */
    font-weight: bold;
    margin: 18px 0 8px;
    color: #333;
}
.mtsp-description h3 {
    font-size: 1.4rem; /* 22.4px */
    font-weight: bold;
    margin: 14px 0 7px;
    color: #ff0000;
}
.mtsp-description h4 {
    font-size: 1.2rem; /* 19.2px, như .welcome-left h4 */
    margin: 12px 0 6px;
    color: #1500ff;
    font-weight: 600;
}
.mtsp-description ul {
    list-style: disc;
    margin: 16px 0;
    padding-left: 40px;
}
.mtsp-description ol {
    list-style: decimal;
    margin: 16px 0;
    padding-left: 40px;
}
.mtsp-description li {
    margin-bottom: 8px;
}
.mtsp-description a {
    color: #007bff;
    text-decoration: underline;
}
.mtsp-description a:hover {
    color: #0056b3;
}
.mtsp-description p {
    margin: 0 0 16px;
    color: #555 !important;
    opacity: 1 !important;
    font-size: 1.1rem; /* 17.6px */
    line-height: 1.8;
}
.mtsp-description strong {
    font-weight: bold;
}
.mtsp-description em {
    font-style: italic;
}
.mtsp-description img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}
.mtsp-description div {
    margin: 16px 0;
}

/* --- Responsive cho di động (max-width: 760px) --- */
@media only screen and (max-width: 760px) {
    /* Reset margin và padding */
    body, html {
        font-family: 'Roboto', sans-serif;
        font-size: 1rem; /* 16px */
    }

    /* Container */
    .chitietsp-container {
        width: 100%;
    }

    /* Breadcrumb */
    .chitietsp-breadcrumb .breadcrumb {
        font-size: 0.9rem; /* 14.4px */
        padding: 0px 20px;
    }

    /* Ảnh sản phẩm */
    .chitietsp-image-main {
        max-width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        margin-bottom: 10px;
    }
    .product-main-img {
        max-width: 100%;
        height: 100%;
        border: none;
    }
    .discount-label {
        font-size: 0.7rem; /* 11.2px */
        padding: 3px 6px;
        bottom: 5px;
        left: 10px;
        height: 30px;
        line-height: 11px;
    }
    .chitietsp-thumbs-container {
        max-width: 100%;
        height: auto;
        margin-top: 10px;
    }
    .chitietsp-thumbs-wrapper {
        width: 100%;
        overflow-x: auto;
        gap: 10px;
        padding: 5px;
        scrollbar-width: none;
    }
    .chitietsp-thumbs-wrapper::-webkit-scrollbar {
        display: none;
    }
    .chitietsp-thumbs-slide {
        width: 100px;
        height: 100px;
    }
    .product-thumb-img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border: 2px solid transparent;
    }
    .product-thumb-img.active {
        border: 2px solid #007bff;
    }
    .thumb-nav-prev, .thumb-nav-next {
        display: none;
    }

    /* Thông tin sản phẩm */
    .chitietsp-price-col {
        padding: 0 20px;
    }
    .chitietsp-price-col::after {
        display: none;
    }
    .chitietsp-price-col p {
        margin: 5px 0;
        font-size: 1rem; /* 16px */
    }
    .chitietsp-price-col .h4 {
        font-size: 1.2rem; /* 19.2px */
    }
    .chitietsp-price-col del {
        font-size: 0.9rem; /* 14.4px */
    }
    #cart-form {
        margin-top: 10px;
    }
    #cart-form .form-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    #soluong {
        width: 60px;
        height: 35px;
        font-size: 0.9rem; /* 14.4px */
    }
    .chitietsp-btn-success {
        width: 100%;
        padding: 10px;
        font-size: 1rem; /* 16px */
    }
    .chitietsp-product-specs {
        margin-top: 15px;
    }
    .chitietsp-product-specs h5 {
        font-size: 1.1rem; /* 17.6px */
    }
    .chitietsp-product-specs ul {
        font-size: 1rem; /* 16px */
    }

    /* Tabs */
    .chitietsp-nav-tabs {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
    }
    .chitietsp-nav-tabs .nav-link {
        font-size: 1rem; /* 16px */
        padding: 8px 15px;
        flex: 1;
        text-align: center;
        border-radius: 5px 5px 0 0;
    }
    .chitietsp-nav-tabs .nav-link.active {
        background-color: #007bff;
        color: #fff;
        border-bottom: none;
    }

    /* Đánh giá */
    .chitietsp-rating-stars {
        font-size: 1.1rem; /* 17.6px */
    }
    .form-group .form-label {
        font-size: 0.9rem; /* 14.4px */
    }
    .form-group input[type="radio"] {
        margin-right: 5px;
    }
    .form-group textarea {
        font-size: 0.9rem; /* 14.4px */
    }
    .chitietsp-btn-primary {
        width: 100%;
        padding: 10px;
        font-size: 1rem; /* 16px */
    }

    /* Sản phẩm giảm giá và bán chạy */
    .chitietsp-discount-products, .chitietsp-hot-products {
        margin-top: 20px;
        padding: 20px;
    }
    .chitietsp-discount-products h5, .chitietsp-hot-products h5 {
        font-size: 1.1rem; /* 17.6px */
    }
    .chitietsp-hot-product {
        margin-bottom: 10px;
    }
    .chitietsp-hot-product img.chitietsp-img {
        width: 80px;
        height: 80px;
    }
    .chitietsp-hot-product-info .product-name {
        font-size: 1rem; /* 16px */
        font-weight: bold;
    }
    .chitietsp-hot-product-info .product-price {
        font-size: 0.9rem; /* 14.4px */
    }
    .chitietsp-hot-product-info .item_price {
        font-size: 0.9rem; /* 14.4px */
    }
    .chitietsp-hot-product-info del {
        font-size: 0.9rem; /* 14.4px */
    }

    /* Mô tả sản phẩm */
    .mtsp-description {
        font-size: 1rem; /* 16px */
    }
    .mtsp-description h2 {
        font-size: 1.4rem; /* 22.4px */
    }
    .mtsp-description h3 {
        font-size: 1.2rem; /* 19.2px */
    }
    .mtsp-description h4 {
        font-size: 1.1rem; /* 17.6px */
    }
    .mtsp-description ul, .mtsp-description ol {
        padding-left: 20px;
    }
    .mtsp-description p {
        font-size: 1rem; /* 16px */
    }
}