/* ============================================================================
   FILE: assets/css/product-detail.css - Product Detail Page Content Styles
   ============================================================================ */

/* Main Content */
.product-container {
    max-width: 1200px;
    margin: 40px auto 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 20px;
}

/* Product Images */
.product-images {
    position: relative;
}

.main-image {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumbnail.active {
    border-color: #333;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.new-arrival-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #333;
    color: white;
    padding: 8px 16px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

.offer-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

/* Product Info */
.product-info {
    padding-top: 40px;
}

.product-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #333;
}

/* Enhanced Product Price with Offers */
.product-price {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.price-original {
    font-size: 18px;
    color: #666;
}

.price-crossed {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.price-discounted {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.price-savings {
    background: #f5f5f5;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.product-rating:hover {
    opacity: 0.7;
}

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

.product-stars .star {
    color: #333;
    font-size: 16px;
}

.product-review-count {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
}

/* Color Section */
.color-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.color-label {
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.color-options {
    display: flex;
    gap: 15px;
}

.color-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-option.active {
    border-color: #333;
    transform: scale(1.1);
}

.color-option:hover {
    transform: scale(1.05);
}

.color-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Size Section */
.size-section {
    margin-bottom: 40px;
}

.size-section.has-offers {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.size-label {
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

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

.size-option {
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.size-option:hover {
    border-color: #333;
}

.size-option.active {
    border-color: #333;
    background: #333;
    color: white;
}

.size-option.unavailable {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
    opacity: 0.5;
}

.size-option.unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #ccc;
    transform: translateY(-50%) rotate(-45deg);
}

/* Offers Section */
.offers-section {
    margin-bottom: 25px;
}

.offers-label {
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offers-container {
    position: relative;
}

.offers-dropdown-trigger {
    width: 100%;
    padding: 15px 20px;
    background: black;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border: none;
}

.offers-dropdown-trigger:hover {
    background: #333;
    color: white;
}

.offers-dropdown-trigger.active {
    background: #333;
    color: white;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.offers-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.offers-list.active {
    max-height: 400px;
}

.offer-item {
    padding: 18px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.offer-item:last-child {
    border-bottom: none;
}

.offer-item:hover {
    background: #f8f8f8;
}

.offer-item.selected {
    background: white;
    color: #333;
    border: 2px solid #333;
}

.offer-radio {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.offer-item:hover .offer-radio {
    border-color: #333;
}

.offer-item.selected .offer-radio {
    border-color: #333;
    background: #333;
}

.offer-item.selected .offer-radio::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.offer-content {
    margin-right: 45px;
}

.offer-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.offer-item.selected .offer-title {
    color: #333;
}

.offer-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.offer-item.selected .offer-description {
    color: #666;
}

.offer-badge-inline {
    position: absolute;
    top: 15px;
    right: 55px;
    background: #333;
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.offer-item.selected .offer-badge-inline {
    background: #333;
    color: white;
}

/* Wholesale Button */
.wholesale-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.wholesale-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.wholesale-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    color: white;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Action Buttons */
.personalization {
    margin-bottom: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e0e0e0;
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background: #000;
    color: white;
}

.btn-secondary {
    background: white;
    color: #000;
    border: 1px solid #000;
}

.btn:hover {
    opacity: 0.8;
}

/* Product Description */
.product-description {
    margin-top: 40px;
    line-height: 1.8;
    color: #666;
}

.product-description p {
    margin-bottom: 0px;
}

/* Video Section */
.video-section {
    margin-top: 40px;
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    height: 570px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255,0,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 25px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-container:hover .video-controls {
    transform: translateY(0);
}

.video-controls-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.video-control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.video-control-btn:hover {
    background: rgba(255,255,255,0.2);
}

.video-progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.video-progress-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.video-time {
    color: white;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
}

.video-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 24px;
    font-weight: 500;
}

.video-subtitle {
    position: absolute;
    bottom: 50px;
    left: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* Expandable Sections */
.expandable-sections {
    margin-top: 40px;
}

.expandable-section {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    color: #333;
}

.section-toggle {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-top: 0;
    color: #666;
}

.section-content.active {
    max-height: 200px;
    padding-top: 20px;
}

.section-toggle.active {
    transform: rotate(45deg);
}

/* Gallery Section */
.gallery-section {
    margin-top: 30px;
    text-align: center;
    background: #ffffff;
    padding: 80px 0;
}

.gallery-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: #333;
}

.gallery-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    border-radius: 0;
    cursor: grab;
}

.gallery-wrapper.dragging {
    cursor: grabbing;
}

.gallery-slider {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    user-select: none;
}

.gallery-slide img:hover {
    transform: scale(1.02);
}

.gallery-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-slide:hover::before {
    opacity: 1;
}

/* Gallery Navigation Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding: 0 20px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #999;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gallery-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #333;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.gallery-dot.active {
    border-color: #333;
    transform: scale(1.2);
}

.gallery-dot.active::before {
    width: 100%;
    height: 100%;
}

.gallery-dot:hover {
    border-color: #333;
    transform: scale(1.1);
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0;
    visibility: visible;
}

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

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.gallery-nav.prev {
    left: 30px;
}

.gallery-nav.next {
    right: 30px;
}

/* Reviews Section */
.reviews-section {
    margin: 20px auto 0;
    max-width: 1200px;
    padding: 0 20px;
}

.reviews-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.reviews-header {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.reviews-title {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #666;
}

.reviews-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 300;
}

.overall-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.rating-number {
    font-size: 48px;
    font-weight: 300;
    color: #333;
    line-height: 1;
}

.rating-details {
    text-align: left;
}

.star-display {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
}

.star-display .star {
    font-size: 20px;
    color: #333;
}

.rating-count {
    font-size: 14px;
    color: #666;
    font-weight: 300;
}

.static-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 20px 0;
}

.static-stars .star {
    font-size: 18px;
    color: #ddd;
}

.write-review-btn {
    background: white;
    color: #666;
    border: 1px solid #ccc;
    padding: 12px 24px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.write-review-btn:hover {
    border-color: #333;
    color: #333;
}

/* Reviews List */
.reviews-list {
    padding: 0;
    background: #ffffff;
}

.review-item {
    padding: 30px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
}

.review-item:last-child {
    border-bottom: none;
}

.review-content-main {
    margin-bottom: 20px;
}

.review-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-text {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
    font-weight: 400;
}

.reviewer-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #888;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
}

.verified-circle {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    border: 2px solid #f8f8f8;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 2px;
}

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

.review-rating .star {
    color: #333;
    font-size: 14px;
}

/* Review Media Gallery */
.review-media-container {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.review-media-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.review-media-item:hover {
    transform: scale(1.05);
    border-color: #333;
}

.review-media-item img,
.review-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-media-item .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.review-media-counter {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

/* Modal Styles */
.image-modal, .image-zoom-modal, .review-media-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active, .image-zoom-modal.active, .review-media-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content, .zoom-content, .review-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image, .zoom-image, .review-modal-media {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.modal-nav, .zoom-close, .review-modal-nav {
    position: absolute;
    background: rgba(0,0,0,0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-nav:hover, .zoom-close:hover, .review-modal-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.modal-prev, .review-modal-prev {
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-next, .review-modal-next {
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-close, .zoom-close, .review-modal-close {
    top: 20px;
    right: 20px;
    font-size: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-counter, .review-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.review-modal-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(10px);
    max-width: 80%;
    text-align: center;
}

/* Image Zoom Modal Specific */
.image-zoom-modal {
    z-index: 4000;
    cursor: zoom-out;
    padding: 50px 20px 150px 20px;
}

.zoom-image {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 800px !important;
    max-height: 600px !important;
    min-width: 600px !important;
    min-height: 450px !important;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.1);
}

.zoom-image.zoomed {
    cursor: grab;
    transform: scale(1.2);
}

.zoom-image.zoomed:active {
    cursor: grabbing;
}

.zoom-thumbnails {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    max-width: 80vw;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 5000;
}

.zoom-thumbnails::-webkit-scrollbar {
    display: none;
}

.zoom-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    object-fit: cover;
    flex-shrink: 0;
}

.zoom-thumb.active {
    border-color: white;
    transform: scale(1.1);
}

.zoom-thumb:hover {
    border-color: rgba(255,255,255,0.7);
    transform: scale(1.05);
}

/* Review Form Modal */
.review-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-form-overlay.active {
    display: flex;
    opacity: 1;
}

.review-form-modal {
    background: white;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.review-form-overlay.active .review-form-modal {
    transform: scale(1);
}

.form-header {
    text-align: center;
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid #e8e8e8;
}

.form-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.form-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.form-content {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}
/* Enhanced name field styling since it's the only text input */
.form-input[name="name"] {
    font-weight: 500; /* Make name field slightly bolder */
}
.rating-input {
    text-align: center;
    margin: 25px 0;
}

.rating-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    display: block;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.rating-stars .star {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #333;
    transform: scale(1.1);
}

.rating-description {
    font-size: 12px;
    color: #666;
    min-height: 20px;
}

/* File Upload Styles */
.file-upload-section {
    margin-bottom: 25px;
}

.file-upload-container {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-container:hover {
    border-color: #333;
    background: #f5f5f5;
}

.file-upload-container.dragover {
    border-color: #333;
    background: #f0f0f0;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #999;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-subtext {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.upload-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #555;
}

.file-input-hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.uploaded-files-preview {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.file-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    background: #f9f9f9;
}

.file-preview img,
.file-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 5px;
}

.file-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.file-remove:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.btn-cancel {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 15px 30px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-cancel:hover {
    border-color: #333;
    color: #333;
}

.btn-submit {
    background: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-submit:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Success Message Styles */
.form-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
}

.form-success-message.show {
    display: flex;
}

.success-icon {
    color: #28a745;
    font-size: 18px;
}

/* Success Banner */
.review-success-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    z-index: 5000;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.review-success-banner.show {
    transform: translateY(0);
}

.review-success-banner .close-banner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sticky Buttons for Mobile */
.sticky-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.sticky-button-group {
    display: flex;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.sticky-btn {
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    flex: 1;
}

.sticky-btn-primary {
    background: #000;
    color: white;
}

.sticky-btn-secondary {
    background: white;
    color: #000;
    border: 1px solid #000;
}

/* Loading Spinner */
.image-loading {
    position: relative;
    display: inline-block;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.image-loading img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-loading.loaded::before {
    display: none;
}

.image-loading.loaded img {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .sticky-buttons {
        display: block !important;
    }

    .product-container {
        grid-template-columns: 1fr !important;
        gap: 0px !important;
        margin: 20px auto !important;
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .product-images {
        order: 1 !important;
        width: 100% !important;
    }

    .product-info {
        order: 2 !important;
        padding-top: 0 !important;
        width: 100% !important;
    }

    .main-image {
        height: 400px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    .thumbnail-container {
        justify-content: flex-start !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding-bottom: 5px !important;
        width: 100% !important;
    }

    .thumbnail-container::-webkit-scrollbar {
        display: none !important;
    }

    .thumbnail {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
    }

    .product-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
        letter-spacing: 1px !important;
    }

    .product-price {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }
    
    .product-rating {
        padding-bottom: 20px !important;
    }

    .size-section, .color-section {
        margin-bottom: 25px !important;
    }

    .color-section {
        padding-bottom: 20px !important;
    }

    .personalization {
        padding-bottom: 0px !important;
        border-bottom: 0px solid #e0e0e0 !important;
        margin-bottom: 0 !important;
    }

    .size-label, .color-label {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }

    .size-options {
        gap: 8px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding-bottom: 5px !important;
    }

    .size-options::-webkit-scrollbar {
        display: none !important;
    }

    .size-option {
        width: 45px !important;
        height: 45px !important;
        font-size: 13px !important;
    }

    .color-options {
        gap: 12px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding-bottom: 5px !important;
    }

    .color-options::-webkit-scrollbar {
        display: none !important;
    }

    .color-option {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0 !important;
    }

    .button-group {
        display: none !important;
    }

    .reviews-section {
        margin: 15px 15px 120px !important;
        padding: 0 !important;
        width: calc(100% - 30px) !important;
    }

    .reviews-header {
        padding: 40px 20px !important;
    }

    .reviews-title {
        font-size: 18px !important;
        margin-bottom: 20px !important;
    }

    .overall-rating {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .rating-number {
        font-size: 36px !important;
    }

    .rating-details {
        text-align: center !important;
    }

    .review-item {
        padding: 25px 20px !important;
    }

    .reviewer-avatar {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }

    .review-title {
        font-size: 14px !important;
        letter-spacing: 0.3px !important;
    }

    .review-text {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .gallery-section {
        margin-top: 0px !important;
        padding: 0 0 0px 0 !important;
    }

    .gallery-title {
        font-size: 18px !important;
        margin-bottom: 20px !important;
        padding: 0 15px !important;
    }

    .gallery-container {
        padding: 0 15px !important;
    }

    .gallery-wrapper {
        height: 350px !important;
    }

    .gallery-dots {
        margin-top: 15px !important;
        padding: 0 15px 20px 15px !important;
    }

    .gallery-dot {
        width: 8px !important;
        height: 8px !important;
    }

    .new-arrival-badge {
        top: 0px !important;
        left: 0px !important;
        padding: 6px 12px !important;
        font-size: 10px !important;
    }

    .offer-badge {
        top: 0px !important;
        right: 0px !important;
        padding: 6px 12px !important;
        font-size: 10px !important;
    }

    .offers-section {
        margin-bottom: 20px !important;
    }

    .offers-dropdown-trigger {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }

    .offer-item {
        padding: 15px 16px !important;
    }

    .offer-radio {
        top: 15px !important;
        right: 16px !important;
        width: 18px !important;
        height: 18px !important;
    }

    .offer-content {
        margin-right: 40px !important;
    }

    .offer-title {
        font-size: 14px !important;
    }

    .offer-description {
        font-size: 13px !important;
    }

    .offer-badge-inline {
        top: 12px !important;
        right: 45px !important;
        padding: 4px 8px !important;
        font-size: 10px !important;
    }

    .video-section {
        margin-top: 20px !important;
        margin-bottom: 0px !important;
    }

    .video-container {
        height: 570 !important;
    }

    .video-title {
        font-size: 18px !important;
        bottom: 15px !important;
        left: 15px !important;
    }

    .video-subtitle {
        bottom: 35px !important;
        left: 15px !important;
        font-size: 12px !important;
    }

    .play-button {
        width: 60px !important;
        height: 60px !important;
    }

    .play-icon {
        border-left: 18px solid white !important;
        border-top: 12px solid transparent !important;
        border-bottom: 12px solid transparent !important;
    }

    .expandable-sections {
        margin-top: 30px !important;
    }

    .expandable-section {
        padding: 18px 0 !important;
    }

    .section-header {
        font-size: 13px !important;
        letter-spacing: 0.5px !important;
    }

    .product-description {
        margin-top: 25px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        
    }

    .btn {
        padding: 18px 25px !important;
        font-size: 13px !important;
        letter-spacing: 0.5px !important;
    }

    .modal-prev {
        left: 0px !important;
    }

    .modal-next {
        right: 0px !important;
    }

    .video-controls {
        padding: 15px !important;
    }

    .video-control-btn {
        font-size: 16px !important;
        padding: 6px !important;
    }

    .wholesale-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

.price-container {
    display: flex;          /* make it flexbox */
    flex-direction: row !important;  /* horizontal layout */
    align-items: center !important;  /* align items vertically in the middle */
    gap: 8px !important;   /* space between items */
}
    .review-form-modal {
        width: 95% !important;
        max-height: 95vh !important;
        border-radius: 12px !important;
    }

    .form-header {
        padding: 35px 30px 25px !important;
    }

    .form-content {
        padding: 20px !important;
    }

    .file-upload-container {
        padding: 20px 15px !important;
    }

    .upload-icon {
        font-size: 36px !important;
    }

    .upload-text {
        font-size: 14px !important;
    }

    .uploaded-files-preview {
        gap: 10px !important;
    }

    .file-preview {
        width: 80px !important;
        height: 80px !important;
    }

    .review-media-item {
        width: 70px !important;
        height: 70px !important;
    }

    .review-modal-nav {
        position: fixed !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: rgba(0,0,0,0.8) !important;
        border: none !important;
        color: white !important;
        font-size: 24px !important;
        padding: 15px !important;
        cursor: pointer !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
        backdrop-filter: blur(10px) !important;
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 6000 !important;
    }

    .review-modal-nav:hover {
        background: rgba(0,0,0,0.9) !important;
        transform: translateY(-50%) scale(1.1) !important;
    }

    .review-modal-prev {
        left: 10px !important;
    }

    .review-modal-next {
        right: 10px !important;
    }

    .review-modal-close {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        background: rgba(0,0,0,0.8) !important;
        border: none !important;
        color: white !important;
        font-size: 24px !important;
        cursor: pointer !important;
        width: 45px !important;
        height: 45px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
        backdrop-filter: blur(10px) !important;
        z-index: 6000 !important;
    }

    .review-modal-close:hover {
        background: rgba(0,0,0,0.9) !important;
        transform: scale(1.1) !important;
    }

    .review-modal-media {
        max-width: 95vw !important;
        max-height: 80vh !important;
        width: auto !important;
        height: auto !important;
        border-radius: 12px !important;
        object-fit: contain !important;
        box-shadow: 0 20px 60px rgba(0,0,0,0.8) !important;
    }

    .review-modal-content {
        position: relative !important;
        max-width: 95vw !important;
        max-height: 80vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px !important;
    }

    .image-zoom-modal {
        padding: 20px 15px 120px 15px !important;
    }
    
    .zoom-content {
        width: 95vw !important;
        height: 80vh !important;
    }
    
    .zoom-image {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        min-width: 300px !important;
        min-height: 300px !important;
    }
    
    .zoom-image.zoomed {
        transform: scale(1.1) !important;
    }
    
    .zoom-thumbnails {
        bottom: 20px !important;
        padding: 12px !important;
        gap: 8px !important;
        max-width: 95vw !important;
    }
    
    .zoom-thumb {
        width: 50px !important;
        height: 50px !important;
    }
    
    .zoom-close {
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 24px !important;
    }
}

/* Additional responsive breakpoints */
@media (max-width: 480px) {
    .product-container {
        padding: 0 10px !important;
    }

    .main-image {
        height: 350px !important;
    }

    .product-title {
        font-size: 16px !important;
    }

    .color-option {
        width: 45px !important;
        height: 45px !important;
    }

    .size-option {
        width: 40px !important;
        height: 40px !important;
        font-size: 12px !important;
    }

    .gallery-wrapper {
        height: 300px !important;
    }

    .video-container {
        height: 570 !important;
    }

    .reviews-section {
        margin: 10px 10px 120px !important;
        width: calc(100% - 20px) !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .thumbnail,
    .color-option,
    .review-media-item {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .sticky-buttons,
    .gallery-nav,
    .modal-nav,
    .video-controls,
    .review-form-overlay {
        display: none !important;
    }
    
    .product-container {
        grid-template-columns: 1fr !important;
    }
    
    .main-image {
        height: auto !important;
        max-height: 400px !important;
    }
}
/* Checkout Modal Styles */
/* Checkout Modal Styles */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.checkout-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.checkout-modal {
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.checkout-modal-overlay.active .checkout-modal {
    transform: scale(1);
}

.checkout-close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #f5f5f5;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.checkout-close:hover {
    background: #333;
    color: white;
}

.checkout-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.checkout-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkout-product-image {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-quantity {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #333;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.checkout-product-details {
    flex: 1;
}

.checkout-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.checkout-product-variant {
    font-size: 14px;
    color: #666;
}

.checkout-product-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.checkout-content {
    padding: 30px;
}

.checkout-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.4;
}

.checkout-form-group {
    margin-bottom: 20px;
}

.checkout-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.required {
    color: #ff4444;
    margin-left: 2px;
}

.checkout-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.checkout-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

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

.checkout-confirm-btn {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.checkout-confirm-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.checkout-confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkout-modal-overlay {
        padding: 15px;
    }
    
    .checkout-modal {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .checkout-header {
        padding: 15px;
    }
    
    .checkout-content {
        padding: 20px;
    }
    
    .checkout-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .checkout-product-info {
        gap: 12px;
    }
    
    .checkout-product-image {
        width: 50px;
        height: 50px;
    }
    
    .checkout-product-name {
        font-size: 14px;
    }
    
    .checkout-product-variant {
        font-size: 13px;
    }
    
    .checkout-product-price {
        font-size: 16px;
    }
}

/* Success Animation */
.checkout-success {
    text-align: center;
    padding: 40px 30px;
}

.checkout-success-icon {
    width: 80px;
    height: 80px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 36px;
}

.checkout-success-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.checkout-success-message {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Success Modal Buttons - Add to your CSS */

.checkout-success-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.btn-success-primary {
    background: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    max-width: 200px;
}

.btn-success-primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-success-secondary {
    background: white;
    color: #333;
    border: 2px solid #333;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    max-width: 200px;
}

.btn-success-secondary:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .checkout-success-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-success-primary,
    .btn-success-secondary {
        max-width: none;
        width: 100%;
    }
}
/*  Editing variant size color switching and chacked image  avaliabity stock  */
/* CSS for disabled/out-of-stock colors */
.color-option.out-of-stock,
.color-option.unavailable {
    opacity: 0.4;
    position: relative;
    /* pointer-events: none; Prevent clicking */
    cursor: pointer;
}

.color-option.out-of-stock::after,
.color-option.unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 2px;
    background-color: black;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 10;
}

/* Optional: Add a "sold out" badge */
.color-option.out-of-stock::before,
.color-option.unavailable::before {
    content: 'SOLD OUT';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: white;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 2px;
    z-index: 11;
    white-space: nowrap;
    display: none; /* Remove this line if you want to show the badge*/
}

/* Sold Out Text Styling */
.sold-out-message {
    color: #ff0000;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Mobile sold out message container */
.mobile-sold-out-container {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 10px 20px 0;
}
.mobile-sold-out-message {
    color: #ff0000;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Hide mobile sold out on desktop */
@media (min-width: 769px) {
    .mobile-sold-out-container {
        display: none !important;
    }
}

/* Show only on mobile */
@media (max-width: 768px) {
    .sold-out-container {
        display: none !important; /* Hide desktop version on mobile */
    }
    
    .mobile-sold-out-container {
        display: block;
    }
}
.btn-out-of-stock {
    background: #666 !important;
    color: white !important;
    border: 1px solid #666 !important;
    cursor: pointer;
}
.btn-out-of-stock:hover {
    background: #555 !important;
    opacity: 0.9;
}
/* Notification Modal CSS - Add to your product_detail.css */

/* Notification Modal */
.notify-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.notify-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.notify-modal {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notify-modal-overlay.active .notify-modal {
    transform: scale(1);
}

.notify-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.notify-close:hover {
    background: #333;
    color: white;
}

.notify-header {
    text-align: center;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid #e8e8e8;
}

.notify-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notify-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.notify-content {
    padding: 30px;
}

.notify-form-group {
    margin-bottom: 20px;
}

.notify-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.notify-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.notify-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

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

.notify-submit-btn {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.notify-submit-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.notify-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* field stats */
.notify-field-error {
    color: #cc0000; 
    font-size: 0.85em;
    margin-top: 5px;
    display: none; /* Crucial: Must be hidden by default */
}
.notify-input.has-error {
    border-color: #cc0000;
    box-shadow: 0 0 0 1px #cc0000;
}
.notify-general-error {
    /* ... (styles for the general error box) ... */
    display: none; /* Crucial: Must be hidden by default */
}
/* Success State */
.notify-success {
    text-align: center;
    padding: 40px 30px;
}

.notify-success-icon {
    width: 70px;
    height: 70px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.notify-success-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.notify-success-message {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notify-modal-overlay {
        padding: 15px;
    }
    
    .notify-modal {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .notify-header {
        padding: 25px 20px 15px;
    }
    
    .notify-content {
        padding: 25px 20px;
    }
    
    .notify-title {
        font-size: 16px;
    }
    
    .notify-subtitle {
        font-size: 13px;
    }
    
    .notify-success {
        padding: 30px 20px;
    }
    
    .notify-success-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .notify-success-title {
        font-size: 20px;
    }
    
    .notify-success-message {
        font-size: 14px;
    }
}

/* For handling errors  */

/* ============================================================================
   FILE: Enhanced Image Optimization CSS
   ============================================================================ */

/* Lazy Loading and Responsive Image Styles */

/* Picture element for responsive images with WebP support */
.lazy-picture {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Lazy loading image base styles */
.lazy-load-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, filter 0.3s ease;
    opacity: 0;
}

/* Image loaded state */
.lazy-load-img.loaded {
    opacity: 1;
}

/* Loading state with blur effect */
.lazy-load-img:not(.loaded) {
    filter: blur(5px);
    transform: scale(1.05);
}

/* Fallback image styles */
.fallback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f5f5f5;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main product image enhancements */
.main-image {
    position: relative;
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
}

.main-image .lazy-picture {
    width: 100%;
    height: 100%;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

/* Loading skeleton for images */
.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Thumbnail optimizations */
.thumbnail {
    position: relative;
    background-color: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1;
}

.thumbnail .lazy-picture {
    width: 100%;
    height: 100%;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: #333;
    box-shadow: 0 0 0 2px #333;
}

/* Color option image optimizations */
.color-option {
    position: relative;
    background-color: #f8f8f8;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1;
}

.color-option .lazy-picture {
    width: 100%;
    height: 100%;
}

.color-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.color-option:hover .color-product-image {
    transform: scale(1.05);
}

.color-option.active {
    border-color: #333;
    transform: scale(1.1);
}

/* Gallery image optimizations */
.gallery-slide {
    position: relative;
    background-color: #f8f8f8;
    overflow: hidden;
}

.gallery-slide .lazy-picture {
    width: 100%;
    height: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-slide:hover img {
    transform: scale(1.02);
}

/* Review media optimizations */
.review-media-item {
    position: relative;
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.review-media-item .lazy-picture {
    width: 100%;
    height: 100%;
}

.review-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Progressive image enhancement */
.progressive-image {
    position: relative;
    overflow: hidden;
}

.progressive-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.progressive-image.loaded::before {
    display: none;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Image error handling */
.image-error {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #999;
    font-size: 14px;
    padding: 20px;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

.image-error::before {
    content: '📷';
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

/* WebP support detection */
.no-webp .webp-only {
    display: none;
}

.webp .fallback-format {
    display: none;
}

/* Performance optimizations */
.lazy-load-img {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

/* Intersection observer loading states */
.image-container {
    position: relative;
}

.image-container.loading {
    background: #f0f0f0;
}

.image-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Image quality indicators */
.image-quality-high {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.image-quality-low {
    image-rendering: pixelated;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .lazy-load-img {
        content-visibility: auto;
        contain-intrinsic-size: 250px 200px;
    }
    
    .main-image {
        height: 350px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .color-option {
        width: 50px;
        height: 50px;
    }
    
    .gallery-slide img {
        object-position: center;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .lazy-load-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .lazy-load-img,
    .thumbnail img,
    .color-product-image,
    .gallery-slide img {
        transition: none;
    }
    
    .image-skeleton,
    .progressive-image::before {
        animation: none;
    }
}

/* Print styles */
@media print {
    .lazy-load-img {
        opacity: 1 !important;
        filter: none !important;
    }
    
    .image-skeleton,
    .progressive-image::before {
        display: none;
    }
}

/* Critical CSS for above-the-fold images */
.critical-image {
    opacity: 1;
    filter: none;
    transition: none;
}

/* Accessibility improvements */
.lazy-load-img[alt=""] {
    opacity: 0.8;
}

/* Focus states for keyboard navigation */
.thumbnail:focus,
.color-option:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Loading states with better UX */
.image-loading-container {
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border-radius: 8px;
}

.image-loading-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.image-loading-container.loaded::before {
    display: none;
}

/* Advanced lazy loading with blur-up effect */
.blur-up {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.blur-up.loaded {
    filter: blur(0);
}

/* ============================================================================
   ENHANCED IMAGE OPTIMIZATION CSS - ADD TO YOUR EXISTING CSS
   ============================================================================ */

/* Core responsive image container styles */
.responsive-picture {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #f8f8f8;
}

.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Critical image loading - no delay */
.critical-image {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
}

/* Lazy loading states */
.lazy-load-img {
    opacity: 0;
    filter: blur(2px);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.lazy-load-img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Image container with aspect ratio preservation */
.image-container {
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Enhanced loading skeleton */
.image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: inherit;
    z-index: 5;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Loading spinner for image changes */
.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhance your existing thumbnail container */
.thumbnail-container .thumbnail .thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f8f8f8;
}

/* Enhance your existing color options */
.color-option .color-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f8f8f8;
}

/* WebP detection classes */
.webp .fallback-format {
    display: none;
}

.no-webp .webp-only {
    display: none;
}

/* Error handling for broken images */
.image-error {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #999;
    font-size: 12px;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: 4px;
    min-height: 80px;
}

.image-error::before {
    content: '📷';
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

/* Progressive loading with blur-up effect */
.blur-up {
    filter: blur(5px);
    transform: scale(1.02);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.blur-up.loaded {
    filter: blur(0);
    transform: scale(1);
}

/* Connection-aware loading classes */
.slow-connection .lazy-load-img {
    transition-duration: 0.6s;
}

.fast-connection .lazy-load-img {
    transition-duration: 0.2s;
}

/* Performance optimizations */
.main-image img,
.thumbnail img,
.color-product-image,
.gallery-slide img {
    transform: translateZ(0); /* Enable hardware acceleration */
    will-change: transform;
}

/* Intersection observer enhancement */
.intersecting {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced main image with optimization support */
.main-image {
    position: relative;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
}

.main-image .responsive-picture {
    width: 100%;
    height: 100%;
}

.main-image.loading {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
}

.main-image.loaded {
    background-color: transparent;
}

/* Thumbnail optimization enhancements */
.thumbnail {
    transition: all 0.3s ease;
    background-color: #f8f8f8;
}

.thumbnail.loading {
    opacity: 0.7;
}

.thumbnail.loaded {
    opacity: 1;
}

/* Color option optimization */
.color-option {
    transition: all 0.3s ease;
    background-color: #f8f8f8;
}

.color-option.loading {
    opacity: 0.7;
}

.color-option.loaded {
    opacity: 1;
}

/* Gallery optimization */
.gallery-slide {
    background-color: #f8f8f8;
    position: relative;
}

.gallery-slide.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

/* Mobile optimizations for image loading */
@media (max-width: 768px) {
    .image-skeleton {
        animation-duration: 2s; /* Slower on mobile */
    }
    
    .lazy-load-img {
        transition-duration: 0.5s; /* Longer transition on mobile */
    }
    
    .loading::after {
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        border-width: 2px;
    }
    
    /* Optimize for mobile viewport */
    .main-image .responsive-img {
        object-position: center center;
    }
    
    .thumbnail-container {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .thumbnail-container::-webkit-scrollbar {
        display: none;
    }
}

/* High DPI optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .responsive-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .lazy-load-img,
    .image-skeleton,
    .loading::after {
        animation: none;
        transition: none;
    }
    
    .blur-up {
        filter: none;
        transform: none;
    }
}

/* Focus states for accessibility */
.thumbnail:focus-visible,
.color-option:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Print optimization */
@media print {
    .lazy-load-img {
        opacity: 1 !important;
        filter: none !important;
    }
    
    .image-skeleton,
    .loading::after {
        display: none !important;
    }
}

/* Performance enhancement for large images */
.large-image {
    content-visibility: auto;
    contain-intrinsic-size: 600px 400px;
}

/* Smooth loading sequence for color changes */
.color-transitioning .main-image {
    position: relative;
}

.color-transitioning .main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 3;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Image quality detection */
.image-quality-low {
    image-rendering: pixelated;
    filter: contrast(1.1) saturate(1.1);
}

.image-quality-high {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Fallback styles for unsupported features */
@supports not (aspect-ratio: 1) {
    .image-container {
        padding-top: 100%; /* Fallback aspect ratio */
    }
}

/* Advanced loading states */
.image-container.critical-loading {
    background: #f8f8f8;
}

.image-container.lazy-loading {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: move 1s linear infinite;
}

@keyframes move {
    0% { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
    100% { background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px; }
}

/* Enhance existing styles for better integration */
.main-image img.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail img.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.color-product-image.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Loading placeholder text */
.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #999;
    font-size: 12px;
    text-align: center;
    min-height: 100px;
}

.loading-placeholder::before {
    content: 'Loading...';
}

/* Success states */
.image-loaded {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optimize existing gallery styles */
.gallery-slide .responsive-picture {
    width: 100%;
    height: 100%;
}

.gallery-slide img.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Review media optimization */
.review-media-item .responsive-picture {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* Memory optimization */
.offscreen {
    content-visibility: hidden;
}

.onscreen {
    content-visibility: visible;
}

/* Optimizer Video reolad */


/* Enhanced Video Styles */
.video-section {
    margin-top: 40px;
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-container.loading video {
    opacity: 0.7;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-direction: column;
}

.video-info {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.video-duration, .video-size {
    margin: 2px 0;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255,0,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 25px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.loading-text {
    font-size: 14px;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-container:hover .video-controls,
.video-container.playing .video-controls {
    transform: translateY(0);
}

.video-progress {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin: 0 15px;
}

.video-progress-buffer {
    height: 100%;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.video-progress-bar {
    height: 100%;
    background: white;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: absolute;
    top: 0;
    left: 0;
}

/* Lazy loading states */
.video-container[data-lazy-load="true"] video {
    opacity: 0;
}

.video-container.loaded video {
    opacity: 1;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .video-container {
        height: 570px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-icon {
        border-left: 18px solid white;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
    }
    
    .video-info {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 11px;
    }
}



/* badgue Out  badge css*/
.sold-out-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(220, 53, 69, 0.9);  /* Red background */
    color: white;
    padding: 8px 16px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .sold-out-badge {
        top: 0px !important;
        left: 0px !important;
        padding: 6px 12px !important;
        font-size: 10px !important;
    }
}