/* Product List Container */
.products-list-container {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* Product Card Clickable */
.card-gift-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-gift-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(246, 140, 31, 0.3);
}

/* Product Detail Modal Styles */
.product-modal-content {
    background: var(--bg-great);
    border: 1px solid var(--color-text-okwin);
    border-radius: 10px;
    color: var(--text-great);
    padding: 5px 20px;
}

.product-modal-header {
    border-bottom: 4px solid var(--color-text-okwin);
    padding: 10px 30px;
    position: relative;
}

.product-modal-header .modal-title {
    color: var(--text-great);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}
.product-image-slider {
    position: relative;
    height: 300px;
}

.product-image-slider .slider-item {
    outline: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.product-image-slider .slider-item img {
    margin: auto;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 300px;
}

.product-image-slider .slick-dots {
    bottom: -35px;
}

.product-image-slider .slick-dots li button:before {
    color: #F68C1F;
    font-size: 10px;
}

.product-image-slider .slick-dots li.slick-active button:before {
    color: #F68C1F;
    opacity: 1;
}

.product-image-slider .slick-prev,
.product-image-slider .slick-next {
    width: 40px;
    height: 40px;
    z-index: 10;
    background: rgba(246, 140, 31, 0.8);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-image-slider .slick-prev:hover,
.product-image-slider .slick-next:hover {
    background: rgba(246, 140, 31, 1);
}

.product-image-slider .slick-prev {
    left: 10px;
}

.product-image-slider .slick-next {
    right: 10px;
}

.product-image-slider .slick-prev:before,
.product-image-slider .slick-next:before {
    display: none;
}

.product-image-slider .slick-prev svg,
.product-image-slider .slick-next svg {
    color: white;
}

.modal-product-image {
    border-radius: 10px;
    border: 1px solid var(--color-text-okwin);
    box-shadow: 0 4px 10px rgba(246, 140, 31, 0.2);
}

.btn-close-product-modal {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s;
}

.btn-close-product-modal:hover {
    color: #F68C1F;
    transform: translateY(-50%) rotate(90deg);
}

.product-modal-body {
    padding: 10px 30px;
    position: relative;
    min-height: 400px;
    overflow-x: hidden;
}

/* Scrollbar styles for modal body */
.product-modal-body::-webkit-scrollbar {
    width: 0px;
}

.product-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.product-modal-body::-webkit-scrollbar-thumb {
    background: var(--color-text-okwin);
    border-radius: 10px;
}

.product-modal-body::-webkit-scrollbar-thumb:hover {
    background: #ff9933;
}

.modal-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 40, 40, 0.9);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    border-radius: 10px;
    border: 1px solid var(--color-text-okwin);
    box-shadow: 0 4px 10px rgba(246, 140, 31, 0.2);
    /* background-color: var(--color-text-okwin); */
}

.product-size-options {
    /* display: flex; */
    gap: 5px;
    justify-content: center;
}

.size-btn {
    border-style: none !important;
    background: #515151;
    color: white;
    border: none;
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    /* min-width: 100px; */
    margin-bottom: 4px
}

.size-btn:hover {
    background: rgba(246, 140, 31, 1);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.size-btn.active {
    background: rgba(246, 140, 31, 1);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 10px rgba(239, 167, 34, 0.4);
}

.btn-exchange-gift-modal {
    background: #F68C1F;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-exchange-gift-modal:hover {
    background: #e67e1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(246, 140, 31, 0.4);
}

.modal-product-name {
    color: var(--text-great);
    font-size: 18px;
    font-weight: 600;
}

.modal-product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-product-price {
    color: rgba(255, 153, 0, 1);
    font-size: 20px;
    font-weight: 600;
}
.product-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-caster-info-item);
    padding: 10px;
    border-radius: 8px;
}

.modal-coin-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.product-info-section, .product-receive-guide {
    margin-top: 20px;
}

.section-title {
    color: var(--color-text-okwin);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.product-description {
    color: var(--text-great);
    font-size: 14px;
    line-height: 1.6;
}

.product-description ul {
    padding-left: 20px;
    margin: 10px 0;
}

.product-description li {
    margin: 8px 0;
}

.product-guide {
    color: var(--text-great);
    font-size: 14px;
    line-height: 1.8;
}

/* Exchange Gift Modal Styles */
.exchange-product-info {
    /* background: #515151; */
    /* padding: 20px; */
    /* border-radius: 8px; */
    /* border: 1px solid var(--color-text-okwin); */
    display: block;
}

.exchange-product-img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-text-okwin);
}

.exchange-product-name {
    color: var(--text-great);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    gap: 5px;
}

.product-rating i {
    color: #FFD700;
    font-size: 16px;
}

.exchange-gift-form {
    margin-top: 10px;
    border-top: 1px solid #A1A1A1;
    padding-top: 20px;
}

.form-label {
    color: var(--text-great);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.form-label.required:after {
    content: ' *';
    color: #F68C1F;
}

.exchange-input {
    background: rgba(255, 255, 255, 1);
    border: 1px solid #666;
    color: var(--text);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s;
}

.exchange-input:focus {
    outline: none;
    border-color: var(--color-text-okwin);
    box-shadow: 0 0 0 3px rgba(246, 140, 31, 0.1);
    background: rgba(255, 255, 255, 1);
}

.exchange-input::placeholder {
    color: #999;
}

.exchange-input option {
    background: #515151;
    color: white;
}

/* Select2 Styles for Exchange Modal */
.select2-container--default .select2-selection--single {
    background: #515151;
    border: 1px solid #666;
    border-radius: 5px;
    height: 40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white;
    line-height: 38px !important;
    padding-left: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: white transparent transparent transparent;
}

.select2-dropdown {
    background: #515151;
    border: 1px solid var(--color-text-okwin);
}

.select2-container--default .select2-results__option {
    background: #515151;
    color: white;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--color-text-okwin) !important;
    color: white;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #3a3a3a;
    border: 1px solid #666;
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #666;
}

.btn-submit-exchange {
    display: block;
    margin: 0 auto;
    background: rgba(253, 137, 1, 1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    /* box-shadow: 0 4px 15px rgba(246, 140, 31, 0.3); */
}

.btn-submit-exchange:hover {
    background: linear-gradient(135deg, #e67e1a 0%, #d89620 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 140, 31, 0.4);
}

.btn-submit-exchange:active {
    transform: translateY(0);
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .product-modal-header {
        padding: 2px 2px;
        border-bottom: 2px solid rgba(246, 140, 31, 1);
        padding-bottom: 10px;
    }
    .btn-close-product-modal {
        right: 0px;
    }
    .product-modal-body {
        padding: 0px;
        max-height: calc(100vh - 190px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .product-modal-content {
        padding: 4px 8px;
        border: none;
    }
    .product-modal-image {
        max-height: 250px;
    }

    .product-image-slider .slick-prev,
    .product-image-slider .slick-next {
        width: 30px;
        height: 30px;
    }

    .product-image-slider .slick-prev svg,
    .product-image-slider .slick-next svg {
        width: 16px;
        height: 16px;
    }

    .modal-product-name {
        font-size: 14px;
    }

    .modal-product-price {
        font-size: 14px;
    }
    .modal-coin-icon {
        width: 14px;
        height: 14px;
    }
    .product-size-options {
        flex-wrap: wrap;
    }
    .size-btn {
        border-style: none !important;
    }

    .exchange-product-info {
        padding: 15px;
    }

    .exchange-product-img {
        max-width: 100px;
        height: 100px;
        border-radius: 4px;
    }

    .exchange-product-name {
        font-size: 14px;
    }

    .product-rating i {
        font-size: 14px;
    }

    .size-btn {
        /* min-width: 80px; */
        padding: 4px 6px;
        font-size: 12px;
    }
    .text-title {
        font-size: 16px;
    }
    .product-modal-image-wrapper {
        margin-top: 10px;
    }
    .product-image-slider, .product-modal-image {
        height: 150px;
        /* border: 1px solid var(--color-text-okwin); */
        border-radius: 5px;
    }
    .product-image-slider .slider-item img {
        height: 150px;
        width: auto;
        background-color: var(--color-text-okwin);

    }
    .btn-exchange-gift-modal {
        padding: 6px 8px;
        margin-top: 6px !important;
        font-size: 12px;
        border-radius: 4px;
    }
    .product-header-wrap {
        padding: 6px;
        border-radius: 4px;
    }
    .product-info-wrapper {
        margin-top: 20px;
    }
    .section-title {
        font-size: 14px;
    }
    .product-description {
        font-size: 12px;
    }
    .products-list-container {
        margin-top: 6px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .img-popup-product {
        padding-left: 0px;
        padding-right: 0px;
    }
    .form-label {
        font-size: 12px;
    }
    .exchange-input {
        font-size: 12px;
        padding: 6px 10px;
    }
}
