/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(30, 60, 30, 0.6) 50%, 
        rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: modalBackdropFade 0.4s ease-out;
}

@keyframes modalBackdropFade {
    from {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
    to {
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.7) 0%, 
            rgba(30, 60, 30, 0.6) 50%, 
            rgba(0, 0, 0, 0.8) 100%);
        backdrop-filter: blur(10px);
    }
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, 
        rgba(232, 245, 233, 0.95) 0%, 
        rgba(200, 230, 201, 0.9) 50%, 
        rgba(165, 214, 167, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(76, 175, 80, 0.3);
    margin: 3% auto;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px rgba(76, 175, 80, 0.15),
        0 0 0 1px rgba(76, 175, 80, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: modalSlideIn 0.4s ease-out;
    /* Thêm padding để tránh bị che */
    padding-bottom: 100px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(76, 175, 80, 0.05) 50%, 
        transparent 70%);
    border-radius: 20px;
    pointer-events: none;
    animation: shimmerModal 3s ease-in-out infinite;
}

@keyframes shimmerModal {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 248, 248, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.2);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    z-index: 1001;
    transform: scale(1);
}

.close-modal:hover {
    color: #fff;
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.9) 0%, 
        rgba(56, 142, 60, 0.9) 100%);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        0 6px 20px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.close-modal:active {
    transform: scale(0.95) rotate(90deg);
}

/* Product Detail Modal */


.product-detail {
    display: flex;
    gap: 30px;
    padding: 20px;
    position: relative;
}

.product-detail-image {
    flex: 0 0 45%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(76, 175, 80, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.2);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(76, 175, 80, 0.1) 50%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-detail-image:hover::before {
    opacity: 1;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
    object-fit: contain;
    object-position: center;
}

.product-detail-image:hover img {
    transform: scale(1.05);
}

.product-detail-image:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(76, 175, 80, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-detail-info {
    flex: 1;
    padding: 25px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 255, 248, 0.8) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.product-detail-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(76, 175, 80, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.product-detail-info:hover::before {
    left: 100%;
}

.product-detail-info h2 {
    margin-top: 0;
    background: linear-gradient(135deg, 
        #2c5530 0%, 
        #4caf50 50%, 
        #66bb6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.product-detail-info h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        #4caf50 0%, 
        #66bb6a 100%);
    border-radius: 2px;
    animation: titleUnderline 2s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { width: 60px; }
    50% { width: 80px; }
}

.product-detail-price {
    font-size: 26px;
    background: linear-gradient(135deg, 
        #e53935 0%, 
        #f44336 50%, 
        #ff5722 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin: 20px 0;
    position: relative;
    display: inline-block;
    animation: priceGlow 2s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(244, 67, 54, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(244, 67, 54, 0.6));
    }
}

.product-detail-quantity {
    color: #555;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.1) 0%, 
        rgba(129, 199, 132, 0.1) 100%);
    border-radius: 25px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    display: inline-block;
    backdrop-filter: blur(5px);
}

.product-detail-description {
    margin: 25px 0;
    background: linear-gradient(135deg, 
        rgba(248, 255, 248, 0.8) 0%, 
        rgba(240, 248, 240, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.product-detail-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #4caf50 0%, 
        #66bb6a 50%, 
        #81c784 100%);
    animation: descriptionGlow 3s ease-in-out infinite;
}

@keyframes descriptionGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.product-detail-description h3 {
    background: linear-gradient(135deg, 
        #2c5530 0%, 
        #4caf50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    position: relative;
}

.product-detail-description h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        #4caf50 0%, 
        transparent 100%);
    border-radius: 1px;
}

.description-content {
    line-height: 1.7;
    color: #333;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.main-description {
    margin-bottom: 25px;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    padding: 15px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(248, 255, 248, 0.4) 100%);
    border-radius: 12px;
    border-left: 4px solid #4caf50;
}

.delivery-info {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 255, 248, 0.8) 100%);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.delivery-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        #4caf50 0%, 
        #66bb6a 50%, 
        #81c784 100%);
}

.delivery-info h4 {
    background: linear-gradient(135deg, 
        #2c5530 0%, 
        #4caf50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
}

.delivery-info h4 i {
    font-size: 22px;
    color: #4caf50;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
}

.delivery-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-info li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.delivery-info li:hover {
    padding-left: 10px;
    background: linear-gradient(90deg, 
        rgba(76, 175, 80, 0.05) 0%, 
        transparent 100%);
    border-radius: 8px;
}

.delivery-info li:last-child {
    border-bottom: none;
}

.delivery-info li strong {
    color: #2c5530;
    margin-right: 8px;
    font-weight: 600;
    position: relative;
}

.highlight-green {
    color: #4caf50;
    font-weight: bold;
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 0;
}

.product-detail-actions button {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(0);
}

.product-detail-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.product-detail-actions button:hover::before {
    left: 100%;
}

.product-detail-actions .btn-primary {
    background: linear-gradient(135deg, 
        #4caf50 0%, 
        #66bb6a 50%, 
        #81c784 100%);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.product-detail-actions .btn-primary:hover {
    background: linear-gradient(135deg, 
        #66bb6a 0%, 
        #81c784 50%, 
        #a5d6a7 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.product-detail-actions .btn-secondary {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.1) 0%, 
        rgba(129, 199, 132, 0.1) 100%);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    backdrop-filter: blur(15px);
}

.product-detail-actions .btn-secondary:hover {
    background: linear-gradient(135deg, 
        #4caf50 0%, 
        #66bb6a 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(76, 175, 80, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.product-detail-actions button:active {
    transform: translateY(-1px);
}

.product-detail-actions button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.product-detail-actions button:hover i {
    transform: scale(1.1);
}

/* Media Queries */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
    
    .product-detail-image {
        flex: 0 0 auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .product-detail-actions {
        flex-direction: column;
    }
    
    .product-detail-actions button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 800px) {
    .modal-content {
        width: 90%;
        margin: 5% auto;
        padding: 8px;
        max-width: 90vw;
        border-radius: 8px;
        max-height: 85vh;
    }
    .close-modal {
        right: 8px;
        top: 8px;
        font-size: 16px;
        width: 28px;
        height: 28px;
    }
    .product-detail {
        flex-direction: column;
        gap: 8px;
        padding: 4px;
    }
    .product-detail-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
        max-height: 200px;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .product-detail-image img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
    .product-detail-info {
        padding: 8px;
        margin: 0;
    }
    .product-detail-info h2 {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    .product-detail-price {
        font-size: 14px;
        margin: 8px 0;
    }
    .product-detail-quantity {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Media query for very small screens (< 320px) */
@media (max-width: 320px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 4px;
        max-width: 95vw;
        border-radius: 6px;
        max-height: 90vh;
    }
    
    .product-detail {
        gap: 4px;
        padding: 2px;
    }
    
    .product-detail-image {
        height: 150px;
        max-height: 150px;
        min-width: auto;
        width: 100%;
        margin: 0;
    }
    
    .product-detail-image img {
        max-width: 95%;
        max-height: 95%;
        border-radius: 6px;
    }
    
    .product-detail-info {
        padding: 4px;
    }
    
    .product-detail-info h2 {
        font-size: 14px;
        margin-bottom: 4px;
        line-height: 1.1;
    }
    
    .product-detail-price {
        font-size: 12px;
        margin: 4px 0;
    }
    
    .product-detail-quantity {
        font-size: 10px;
        padding: 2px 4px;
        margin-bottom: 8px;
    }
    .product-detail-description {
        display: none;
    }
    .main-description {
        display: none;
    }
    .delivery-info {
        padding: 8px;
        margin: 8px 0;
    }
    .delivery-info h4 {
        font-size: 12px;
        margin-bottom: 6px;
    }
    .delivery-info li {
        font-size: 10px;
        padding: 4px 0;
    }
    .delivery-info li strong {
        min-width: 80px;
        font-size: 10px;
    }
    .shipping-label {
        padding: 1px 6px;
        font-size: 9px;
    }
    .product-detail-actions {
        flex-direction: column;
        gap: 6px;
        margin-top: 8px;
        padding: 0 4px;
    }
    .product-detail-actions button {
        width: 100%;
        padding: 8px;
        font-size: 12px;
        justify-content: center;
    }
}

/* Product Detail Vertical Layout */
.product-detail-vertical {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0;
    max-width: 100%;
}

/* Ảnh sản phẩm ở đầu */
.product-detail-image-top {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(76, 175, 80, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 12px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-detail-image-top:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.product-detail-image-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.product-detail-image-top:hover img {
    transform: scale(1.02);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    gap: 10px;
}

.no-image-placeholder i {
    font-size: 48px;
    color: #ccc;
}

/* Thông tin sản phẩm ở dưới */
.product-detail-info-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* Header sản phẩm */
.product-header {
    text-align: center;
    padding: 15px 0;
    border-bottom: 2px solid rgba(76, 175, 80, 0.1);
}

.product-title {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.product-price-main {
    font-size: 20px;
    font-weight: bold;
    color: #43a047;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    border: 2px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
}

/* Meta thông tin */
.product-meta-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(248, 249, 250, 0.8);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.product-quantity-info,
.product-account-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.product-quantity-info i,
.product-account-type i {
    color: #43a047;
    font-size: 18px;
}

.account-type-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-type-badge.online {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.account-type-badge.offline {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border: 1px solid #ff9800;
    text-decoration: none;
}

.account-type-badge.offline:hover {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* Tooltip cho account-type-badge */
.account-type-badge::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 220px;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: max-content;
}

.account-type-badge::after {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.account-type-badge:hover::before,
.account-type-badge:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Mô tả sản phẩm */
.product-description-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.product-description-section h3 {
    color: #2c3e50;
    font-size: 16px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-description-section h3 i {
    color: #43a047;
}

.description-content {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    position: relative;
}

/* Styles cho chức năng ẩn/hiện mô tả */
.description-content.collapsed {
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.description-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
}

.description-toggle {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.3);
}

.description-toggle:hover {
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.4);
}

.description-toggle i {
    transition: transform 0.3s ease;
}

.description-toggle.expanded i {
    transform: rotate(180deg);
}

/* Thông tin giao hàng */
.shipping-info-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.shipping-info-section h4 {
    color: #2e7d32;
    font-size: 16px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipping-info-section h4 i {
    color: #43a047;
}

.shipping-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}

.shipping-item:last-child {
    border-bottom: none;
}

.shipping-label {
    font-weight: 600;
    color: #555;
    font-size: 15px;
}

.shipping-value {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid;
}

.shipping-value.auto {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-color: #4caf50;
}

.shipping-value.manual {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border-color: #ff9800;
}

.shipping-value.instant {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #1b5e20;
    border-color: #43a047;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.3);
    font-weight: 900;
}

.shipping-value.fast {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.shipping-value.normal {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    color: #388e3c;
    border-color: #66bb6a;
    box-shadow: 0 2px 8px rgba(102, 187, 106, 0.2);
}

.shipping-value.slow {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f57c00;
    border-color: #ffb74d;
    box-shadow: 0 2px 8px rgba(255, 183, 77, 0.2);
}

/* Nút hành động */
.product-actions-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    border-top: 2px solid rgba(76, 175, 80, 0.1);
    /* Thêm sticky positioning */
    position: sticky;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(232, 245, 233, 0.98) 0%, 
        rgba(200, 230, 201, 0.95) 50%, 
        rgba(165, 214, 167, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    margin: 0 -20px -20px -20px;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(76, 175, 80, 0.15);
    z-index: 10;
    animation: stickySlideUp 0.3s ease-out;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    /* Thêm hiệu ứng nổi bật hơn cho sticky buttons */
    position: relative;
    overflow: hidden;
}

/* Thêm hiệu ứng shimmer cho sticky buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
    color: white;
    border: 2px solid #43a047;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: 2px solid #2196f3;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #23284a 0%, #1a1f2e 100%);
    color: #6eea00;
    border: 2px solid #6eea00;
    margin-top: 10px;
    
}

.btn-info:hover {
    background: linear-gradient(135deg, #6eea00 0%, #4caf50 100%);
    color: #23284a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 234, 0, 0.3);
}

.btn-free {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: 2px solid #ff9800;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

.btn-free:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

/* Responsive cho tooltip */
@media (max-width: 768px) {
    .account-type-badge::before {
        bottom: 140%;
        font-size: 12px;
        padding: 8px 12px;
        max-width: 200px;
        width: auto;
    }
    
    .account-type-badge::after {
        bottom: 130%;
    }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 2% auto;
        padding: 15px;
        max-height: 95vh;
        background: linear-gradient(135deg, 
            rgba(232, 245, 233, 0.98) 0%, 
            rgba(200, 230, 201, 0.95) 50%, 
            rgba(165, 214, 167, 0.98) 100%);
    }
    
    .product-detail-image-top {
        height: 250px;
        margin-bottom: 15px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-price-main {
        font-size: 18px;
        padding: 8px 16px;
    }
    
    .product-meta-info {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .product-quantity-info,
    .product-account-type {
        font-size: 13px;
    }
    
    .product-description-section,
    .shipping-info-section {
        padding: 12px;
    }
    
    .product-description-section h3,
    .shipping-info-section h4 {
        font-size: 15px;
    }
    
    .description-content {
        font-size: 13px;
    }
    
    .product-actions-section {
        padding: 15px;
        margin: 0 -20px -20px -20px;
        gap: 12px;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
        min-width: auto;
        flex: 1;
        max-width: none;
    }
    
    .shipping-item {
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
        padding: 12px;
        background: linear-gradient(135deg, 
            rgba(232, 245, 233, 0.99) 0%, 
            rgba(200, 230, 201, 0.97) 50%, 
            rgba(165, 214, 167, 0.99) 100%);
    }
    
    .product-detail-image-top {
        height: 200px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .product-price-main {
        font-size: 16px;
        padding: 6px 14px;
    }
    
    .product-actions-section {
        padding: 12px;
        margin: 0 -12px -12px -12px;
    }
    
    .action-buttons {
        gap: 6px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 20px;
    }
}

/* Thêm animation cho sticky effect */
@keyframes stickySlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}