.product-detail img {
    max-width: 100% !important;
    height: auto !important;
}

.product-detail table {
    max-width: 100% !important;
    overflow: scroll;
}

.button-style {
    cursor: pointer;
}

.content-qua-tang {
    margin: 8px 0;
}

.tag .gia .active {
    border: 1px solid #000;
}

.ds-thuong-hieu .active {
    border: 1px solid #000;
}

.paginate {
    float: right;
    margin: 10px 0 20px;
}

.page-item.active .page-link {
    background-color: #000;
    border-color: #000;
}

.page-link {
    color: #000;
}

/* Product item slider images */
.slider-image-product-item {
    display: flex !important;
    gap: 5px;
    margin-top: 10px;
    justify-content: flex-start;
}

.slider-image-product-item > div {
    flex: 0 0 calc(33.333% - 3.33px);
    max-width: calc(33.333% - 3.33px);
}

.slider-image-product-item img {
    width: 100%;
    object-fit: cover;
    margin: 0 !important;
}

@media only screen and (max-width: 767px) {
    .sidebar-left {
        display: none;
        width: 100%;
    }
}

/*********************/

/** jRating CSS **/

/*********************/

/**Div containing the color of the stars */

.jRatingAverage {
    background-color: #f62929;
    position: relative;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100%;
}

.jRatingColor {
    background-color: #f4c239;
    /* bgcolor of the stars*/
    position: relative;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100%;
}

/** Div containing the stars **/

.jStar {
    position: relative;
    left: 0;
    z-index: 3;
}

/** P containing the rate informations **/

p.jRatingInfos {
    position: absolute;
    z-index: 9999;
    background: transparent url('../images/bg_jRatingInfos.png') no-repeat;
    color: #FFF;
    display: none;
    width: 91px;
    height: 29px;
    font-size: 16px;
    text-align: center;
    padding-top: 5px;
}

p.jRatingInfos span.maxRate {
    color: #c9c9c9;
    font-size: 14px;
}

.rating {
    display: inline-block;
    position: absolute;
    top: 2px;
    background: #c0c0c6;
}

.chi-tiet-sp img {
    max-width: 100% !important;
    height: auto !important;
}

.accordion button {
    white-space: normal;
    text-align: left;
}

.list-logo img {
    height: 80px;
}

/* ===== Product Card Component Redesign ===== */
.product-card {
    position: relative;
    margin-bottom: 30px;
}

.product-card .image-product {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card .image-product img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .image-product img {
    transform: scale(1.05);
}

/* Tag Bán Chạy */
.tag-bestseller {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #000;
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.5px;
}

/* Quick Add Overlay */
.quick-add-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.product-card:hover .quick-add-overlay {
    opacity: 1;
}

.btn-quick-add {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-quick-add:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    transform: scale(1.02);
}

.btn-quick-add i {
    font-size: 18px;
    font-weight: 700;
}

/* Size Selector Overlay */
.size-selector-overlay {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 15;
}

.product-card:hover .size-selector-overlay {
    opacity: 1;
}

.size-options {
    display: flex;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 10px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.size-option {
    min-width: 46px;
    height: 46px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-option:hover {
    border-color: rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.size-option.active {
    border-color: #000;
    background-color: #000;
    color: #fff;
}

/* Color Selector */
.color-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    justify-content: center;
    align-items: center;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.color-option.active {
    border-color: #000;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000;
    transform: scale(1.1);
}

.color-option.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 2px solid #000;
    border-radius: 50%;
    pointer-events: none;
}

/* Description */
.product-card .description-product h4 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.product-card .description-product h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card .description-product h4 a:hover {
    color: #000;
}

.product-card .price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 10px 0;
}

/* Gift Banner */
.gift-banner {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
}

.gift-banner i {
    font-size: 14px;
}

/* Responsive */
@media only screen and (max-width: 767px) {
    .size-options {
        gap: 6px;
        padding: 8px 10px;
    }
    
    .size-option {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .btn-quick-add {
        padding: 12px 18px;
        font-size: 13px;
    }
    
    .btn-quick-add span {
        display: none;
    }
    
    .btn-quick-add i {
        font-size: 20px;
    }
    
    .quick-add-overlay {
        opacity: 1;
    }
    
    .size-selector-overlay {
        opacity: 1;
    }
    
    .color-option {
        width: 20px;
        height: 20px;
    }
    
    .color-option.active::before {
        width: 28px;
        height: 28px;
    }
}

/* ===== Sticky Header ===== */
.header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 100;
}

.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease-out;
}

/* Thu nhỏ padding khi sticky */
.header.sticky .content-header {
    padding: 12px 0;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.sticky .logo img {
    max-height: 45px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation cho header xuất hiện */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Thêm khoảng trống cho content khi header sticky */
body.header-sticky-active {
    padding-top: 0;
    transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive cho sticky header */
@media only screen and (max-width: 991px) {
    .header.sticky .content-header {
        padding: 10px 0;
    }
    
    .header.sticky .logo img {
        max-height: 40px;
    }
}

@media only screen and (max-width: 767px) {
    .header.sticky .content-header {
        padding: 8px 0;
    }
    
    .header.sticky .logo img {
        max-height: 35px;
    }
}
