.product-gallery {
    margin-bottom: 30px;
}

.gallery-main .gallery-item {
    aspect-ratio: 16/9;
    border-radius: 16px;
}

.gallery-main .main-image {
    width: calc(100% - 2px);
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.card-product-detail {
    padding: 24px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
}

.policy-item img {
    width: 32px;
    height: 32px;
}

.gallery-main {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.gallery-main .slick-dots {
    margin-top: 10px;
    width: 100%;
    display: flex;
    gap: 10px;
}

.gallery-main .slick-dots li {
    width: 20%;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-main .slick-dots li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.5;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.gallery-main .slick-dots li button {
    cursor: pointer;
    width: 100%;
    height: 100%;
    border: 0;
    font-size: 0;
}

.gallery-main .slick-dots li.slick-active button {
    background-color: #fff;
}

.gallery-main .slick-dots li.slick-active img {
    opacity: 1;
}

.sale-price {
    font-size: 24px;
    font-weight: 600;
    color: #ff4500;
}

.detail-content {
    max-height: 480px;
    overflow: hidden;
}

.price-detail {
    font-size: 24px;
    font-weight: 600;
}

.original-price {
    text-decoration: line-through;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.cart-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.button-cart {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    background-color: var(--primary-900);
}

.input-quantity {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.input-quantity::-webkit-inner-spin-button,
.input-quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn.add-to-cart-detail {
    width: 100%;
    font-weight: 600;
}

.btn.add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.product-actions {
    display: flex;
    gap: 16px;
}

.add-to-cart-login, .add-to-cart-detail {
    height: 40px;
}

.policy-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.product-tabs {
}

.product-tabs .nav-tabs {
    border: 0;
}

.nav-link {
    color: var(--primary);
    font-weight: 600;
    padding: 16px;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: unset;
    border: 0;
    border-bottom: 2px solid var(--primary);
    font-weight: 500;
    color: var(--primary);
}

.nav-tabs .nav-link {
    color: gray;
    font-weight: 400;
}

.nav-tabs .nav-link:hover {
    border: 0;
}

.tab-pane {
    padding: 16px;
}

.modal-2xl {
    max-width: 96%;
}

.modal-content {
    border-radius: 16px;
}

.product-description {  
    max-height: 480px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    position: relative;
}

.product-description.expanded::after {
    content: unset;    
}

.product-description::after {
    content: '';    
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.product-description.expanded {
    max-height: 2000px;
}

.btn-read-more {
    transition: all 0.3s ease;
}

.btn-read-more.hidden {
    display: none;
}

.options-wrapper {
    display: flex;
    gap: 16px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--primary);
    cursor: pointer;
}

.option-item.active {
    background-color: var(--primary);
    color: var(--white);
}

.price-wrapper {
    display: none;
}

.price-wrapper.active {
    gap: 16px;
    display: flex;
}

.price-item {
    font-size: 24px;
    font-weight: 600;
}

.discount-price-item {
    font-size: 18px;
    font-weight: 400;
    color: var(--gray-500);
    text-decoration: line-through;
}

/* Attributes Table Styles */
.table-responsive {
    margin: 20px 0;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--gray-100);
    font-weight: 600;
    border-color: var(--gray-200);
}

.table td {
    vertical-align: middle;
    border-color: var(--gray-200);
}

.attribute-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
