.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e7e5e5;
}

.section-title::before {
    left: 0;
}

.section-title::after {
    right: 0;
}

.product-card {
    border: 1px solid #ddd;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .product-title {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.product-card .product-price {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
    margin-bottom: 5px;
}

.sale-tag {
    position: absolute;
    width: 40%;
    top: 10px;
    left: 5px;
    animation: smooth-swing 1.5s cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
}


.sale-icon {
    height: 30px !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-position: center;
}

.sale-tag span {
    position: relative;
    z-index: 9999999;
    color: #a11616;
    font-weight: 600;
    font-size: 14px;
}

.product-card .product-rating {
    font-size: 14px;
    color: #f39c12;
    margin-bottom: 10px;
}

.product-card .product-button {
    margin-top: 10px;
}

.pagination {
    justify-content: center;
}

.highlighted {
    border: 2px solid #007bff;
}

.product_not_found {
    max-width: 400px;
}

.buy_action_box {
    flex-direction: column;
    gap: 5px;
}

.btn-buy,
.btn-custom {
    border-radius: 5px;
    background-color: #000;
    color: #fff;
    transition: all 0.2s linear;
}

.btn-custom {
    border-radius: 4px;
    border: 1px solid #000;
}

.btn-buy:hover,
.btn-custom:hover {
    background-color: #fff;
    color: #000;
}

.btn-add-to-cart {
    border-radius: 5px;
    background-color: #fff;
    color: #000;
    transition: all 0.2s linear;
    padding: 9px 0;
}

.btn-add-to-cart:hover {
    background-color: #000;
    color: #fff;
}

.product_item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
}

.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title p {
    width: 200px;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.box-dynasty {
    padding: 10px;
    border: 1px solid #e7e5e5;
    margin-bottom: 5px;
}

.preorder-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 100px !important;
    height: 30px !important;
    animation: scale-pulse 1.5s ease-in-out infinite;
}

.card.product-card {
    height: 100%;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card {
    position: relative;
    overflow: hidden;
}

.quick-view-container {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.product-card:hover .quick-view-container {
    opacity: 1;
}

.btn-quick-view {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content {
    animation: fadeInUp 0.3s ease-in-out;
    position: relative;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-product-image {
    max-width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.small-preview {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.small-preview:hover,
.small-preview.active {
    border-color: #007bff;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector .label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.quantity-input {
    width: 80px;
    padding: 8px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #ccc;
    text-align: center;
    transition: border-color 0.3s ease-in-out;
}

.quantity-input:focus {
    border-color: #007bff;
    outline: none;
}

.buy-btn {
    background: linear-gradient(135deg, rgb(19, 18, 18), rgb(27, 20, 18));
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px;
    border-radius: 10px;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.3s ease;
}

.buy-btn:hover {
    background: linear-gradient(135deg, rgb(255, 255, 255), rgb(226, 224, 225));
    border: 1px solid #000;
    transform: scale(1.01);
    color: #000;
}

.cart-btn {
    background: white;
    color: #007bff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px;
    border: 2px solid #007bff;
    border-radius: 10px;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cart-btn:hover {
    background: #007bff;
    color: white;
    transform: scale(1.05);
}

.custom-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fdfdfd;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3sease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    outline: none;
    border: none;
}

.custom-close-btn:hover {
    color: red;
}

body {
    padding-right: 0px !important;
}

/* Pre-Order Box */
.preorder-info {
    background: linear-gradient(135deg, #333, #000);
    color: #ffeb3b;
    padding: 15px;
    border-radius: 12px;
    margin-top: 5px;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.2);
    position: relative;
    animation: glow 1.5s infinite alternate;
}

/* Badge Pre-Order */
.preorder-badge {
    background: #ffeb3b;
    color: #000;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 1rem;
    margin-bottom: 8px;
}

/* Hiệu ứng Pre-Order */
@keyframes glow {
    0% { box-shadow: 0px 0px 10px rgba(255, 235, 59, 0.3); }
    100% { box-shadow: 0px 0px 20px #c3c3c3b3; }
}

@keyframes scale-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes smooth-swing {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-8deg);
    }

    50% {
        transform: rotate(8deg);
    }

    75% {
        transform: rotate(-4deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@media (max-width: 768px) {
    .product_not_found {
        max-width: 90%;
    }

    .section-title p {
        width: 100%;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }

    .custom-close-btn {
        top: 0px;
        right: 0px;
        z-index: 99999999999999999;
    }


}