/* Product Detail Styles */
/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.product-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
    height: auto;
    order: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail-item {
    width: 152px;
    height: 152px;
    min-width: 152px;
    flex: 0 0 auto;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.thumbnail-item.empty {
    background-color: transparent;
    border: none;
    visibility: hidden;
    cursor: default;
    pointer-events: none;
}

.thumbnail-item.active {
    border-color: var(--primary-color);
}

.thumbnail-item:hover {
    border-color: var(--primary-color-5);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main-image {
    border-radius: 20px;
    overflow: hidden;
    background: var(--primary-color-2);
    flex: 1;
    position: relative;
    height: 600px;
    order: 1;
}

.main-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}


.product-detail-section .row.h-100 {
    min-height: 600px;
}


.product-info {
    height: 100%;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color-5);
    border-radius: 2px;
}

.product-thumbnails {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color-5) transparent;
}

/* Product Info */
.product-info {
    padding-left: 30px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-text {
    color: var(--primary-color-5);
    font-size: 14px;
}

/* Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-price-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price-main {
    font-size: 2rem;
    color: var(--primary-color-5);
    text-decoration: line-through;
}

.discount-badge {
    background: rgba(255, 51, 51, 0.1);
    color: #ff3333;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 500;
}

/* Product Options */
.product-options {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
}

.option-title {
    color: var(--primary-color-5);
    font-size: 16px;
    margin-bottom: 15px;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 15px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option.active {
    border-color: var(--primary-color);
}

.color-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.color-brown {
    background: #8B4513;
}

.color-green {
    background: #6B8E23;
}

.color-navy {
    background: #2F4F4F;
}

/* Size Options */
.size-options {
    display: flex;
    gap: 10px;
}

.size-option {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: var(--primary-color-2);
    color: var(--primary-color-5);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.size-option.active,
.size-option:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.size-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
    border-color: #ddd;
}

.color-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.color-option.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* Product Actions */

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--primary-color-2);
    border-radius: 50px;
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 50px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    outline: none !important;
    cursor: default !important;
    -moz-appearance: textfield !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    z-index: 1 !important;
}

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

.quantity-input:focus {
    outline: none;
    color: #333 !important;
}

.add-to-cart-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.add-to-cart-btn:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Product Details Content */
.product-details-content h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item strong {
    color: var(--primary-color-3);
}


/* Load More Button */
.load-more-reviews {
    border-radius: 50px;
    padding: 12px 30px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-images {
        min-height: 500px;
    }

    .product-main-image {
        height: 500px;
    }

    .product-detail-section .row.h-100 {
        min-height: 500px;
    }

    .thumbnail-item {
        width: 120px;
        height: 120px;
        min-width: 120px;
    }
}

@media (max-width: 992px) {
    .product-info {
        padding-left: 0;
        margin-top: 30px;
    }

    .product-images {
        flex-direction: column;
        min-height: auto;
        height: auto;
        gap: 15px;
    }

    .product-thumbnails {
        flex-direction: row;
        width: 100%;
        height: auto;
        order: 2;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .thumbnail-item {
        width: 100px;
        height: 100px;
        min-width: 100px;
        flex: 0 0 auto;
        margin-right: 10px;
    }

    .product-main-image {
        height: 400px;
        order: 1;
    }

    .main-image {
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .product-images {
        gap: 15px;
    }

    .product-thumbnails {
        gap: 10px;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color-5) transparent;
    }

    .thumbnail-item {
        width: 90px;
        height: 90px;
        min-width: 90px;
    }

    .product-main-image {
        height: 380px;
    }

    .product-title {
        font-size: 2rem;
    }

    .current-price,
    .original-price {
        font-size: 1.5rem;
    }


    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .quantity-input {
        width: 40px;
        font-size: 14px;
    }

    .reviews-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .reviews-actions {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .review-sort {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .product-images {
        gap: 12px;
    }

    .product-thumbnails {
        gap: 8px;
        width: 100%;
        justify-content: flex-start;
    }

    .thumbnail-item {
        width: 75px;
        height: 75px;
        min-width: 75px;
        border-radius: 15px;
    }

    .product-main-image {
        height: 300px;
        border-radius: 15px;
    }

    .main-image {
        border-radius: 15px;
    }

    .size-options {
        flex-wrap: wrap;
        gap: 8px;
    }

    .size-option {
        padding: 10px 16px;
        font-size: 13px;
    }

    .color-options {
        justify-content: flex-start;
        gap: 12px;
    }

    .color-option {
        width: 35px;
        height: 35px;
    }

    .product-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .current-price,
    .original-price {
        font-size: 1.25rem;
    }

    .product-description {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 375px) {
    .product-thumbnails {
        padding: 8px 5px;
        gap: 6px;
    }

    .thumbnail-item {
        width: 65px;
        height: 65px;
        min-width: 65px;
        border-radius: 12px;
    }

    .product-main-image {
        height: 280px;
        border-radius: 12px;
    }

    .main-image {
        border-radius: 12px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .current-price,
    .original-price {
        font-size: 1.125rem;
    }
}

/* More images overlay */
.thumbnail-item.more-images {
    position: relative;
    cursor: pointer;
}

.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

/* Main image navigation */
.main-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.main-image-container:hover .image-nav {
    opacity: 1;
    visibility: visible;
}

.image-nav:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.image-nav i {
    color: var(--primary-color);
    font-size: 14px;
}

/* Image indicators */
.image-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Gallery Modal Styles */
.modal-lg {
    max-width: 900px;
}

.gallery-container {
    text-align: center;
}

.gallery-main-image {
    position: relative;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-nav i {
    color: white;
    font-size: 16px;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-height: 120px;
    overflow-y: auto;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile specific styles */
@media (max-width: 992px) {
    .image-nav {
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.8);
    }

    .main-image-container {
        touch-action: pan-y;
        user-select: none;
    }

    .product-images {
        flex-direction: column;
        min-height: auto;
        height: auto;
        gap: 15px;
    }

    .product-thumbnails {
        flex-direction: row;
        width: 100%;
        height: auto;
        order: 2;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .thumbnail-item {
        width: 100px;
        height: 100px;
        min-width: 100px;
        flex: 0 0 auto;
        margin-right: 10px;
    }

    .product-main-image {
        height: 400px;
        order: 1;
    }

    .main-image {
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .image-nav {
        width: 35px;
        height: 35px;
    }

    .image-nav i {
        font-size: 12px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .image-indicators {
        bottom: 10px;
    }

    .indicator {
        width: 6px;
        height: 6px;
    }

    .gallery-image {
        height: 350px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .more-overlay {
        font-size: 12px;
        border-radius: 15px;
    }

    .image-nav {
        width: 30px;
        height: 30px;
    }

    .image-nav i {
        font-size: 10px;
    }

    .gallery-image {
        height: 280px;
    }

    .thumbnail-item {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }

    .product-main-image {
        height: 350px;
    }
}

/* Active state enhancements for color and size options */
.color-option.active:hover,
.size-option.active:hover {
    position: relative;
    cursor: pointer;
}

.size-option.active:hover {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.color-option.active:hover::after {
    content: '';
    width: 40.5px;
    height: 40.5px;
    position: absolute;
    top: -1px;
    left: -2px;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.stock-info {
    margin-top: -10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.add-to-cart-btn.disabled {
    display: none; /* Hide disabled state since no stock checking */
}

@keyframes attention-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.needs-attention {
    animation: attention-pulse 1s infinite;
    border-radius: 4px;
}

/* Dress Style Options */
.dress-style-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dress-style-option {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 80px;
}

.dress-style-option:hover {
    border-color: var(--primary-color-3);
    background-color: #f8f9fa;
}

.dress-style-option.active {
    border-color: var(--primary-color-3);
    background-color: var(--primary-color-3)    ;
    color: #fff;
}

.dress-style-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
    color: #999;
}

.dress-style-option.disabled:hover {
    border-color: #e0e0e0;
    background-color: #f5f5f5;
}

/* Needs attention animation */
.needs-attention {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(255, 193, 7, 0.2); }
}
