/* Product Detail Page Styles */
.product-detail-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    width: 100%;
    height: 600px;
    min-height: 600px;
    background-color: #f8f8f8;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.image-slider {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.slider-image:hover {
    opacity: 0.9;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.thumbnail-image:hover {
    border-color: #ff6b00;
    transform: scale(1.05);
}

.thumbnail-video {
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s;
    color: white;
    font-weight: bold;
}

.thumbnail-video:hover {
    border-color: #ff0000;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.thumbnail-video i {
    font-size: 32px;
    margin-bottom: 4px;
}

.thumbnail-video span {
    font-size: 11px;
}

/* Mobile Image Navigation - Hidden on Desktop */
.mobile-image-nav {
    display: none;
}

.main-video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.main-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title-main {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
}

.product-category {
    color: #666;
    font-size: 14px;
}

.product-category-mobile {
    display: none;
    color: #666;
    font-size: 14px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffa500;
    font-size: 18px;
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.product-price-main {
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.current-price-main {
    font-size: 36px;
    font-weight: bold;
    color: #ff6b00;
}

.stock-left-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff6b00;
    color: white;
    padding: 4px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #ff6b00;
    margin-left: 15px;
}

.stock-left-badge.urgent {
    background: #ff6b00;
    border-color: #ff6b00;
}

.product-features {
    display: flex;
    gap: 20px;
    color: #4CAF50;
    font-weight: 600;
}

.product-features.mobile-only {
    margin-bottom: 20px;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Selection Sections */
.selection-section {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.selection-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.color-options, .size-options, .sticker-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.color-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
    width: 100%;
    padding-top: 5px;
}

.color-options::-webkit-scrollbar {
    display: none;
}

.color-option, .size-option, .sticker-option {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-width: 80px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.color-option img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.color-option:hover, .size-option:hover, .sticker-option:hover {
    border-color: #ff6b00;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2);
}

.color-option.active, .size-option.active, .sticker-option.active {
    border-color: #ff6b00;
    background-color: #fff3e6;
}

.color-option.disabled, .size-option.disabled, .sticker-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.size-option {
    min-width: 60px;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
}

.sticker-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
}

.sticker-option img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.sticker-option span {
    font-size: 12px;
    font-weight: 600;
}

.no-sticker-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

.size-chart-note {
    margin-top: 10px;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* Quantity Selector */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-selector button {
    width: 40px;
    height: 40px;
    border: 2px solid #ff6b00;
    background-color: white;
    color: #ff6b00;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-selector button:hover {
    background-color: #ff6b00;
    color: white;
}

.qty-selector input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: linear-gradient(135deg, #ff6b00 0%, #ff4500 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(-1px);
}

/* Shipping Info */
.shipping-info {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    margin: 0 auto;
}

.shipping-info p {
    margin: 8px 0;
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
}

/* Product Description */
.product-description-container {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
}

.product-description-container h2 {
    display: none;
}

#productDescription {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
    margin-bottom: 30px;
}

#productDescription iframe {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#productDescription {
    line-height: 2;
    color: #555;
    font-size: 16px;
    margin-bottom: 30px;
}

#productDescription a {
    color: #ff6b00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

#productDescription a:hover {
    color: #ff4500;
    text-decoration: underline;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
}

.detail-images::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(245, 245, 245, 0.2) 25%,
        rgba(245, 245, 245, 0.5) 50%,
        rgba(245, 245, 245, 0.8) 75%,
        rgba(245, 245, 245, 1) 100%);
    pointer-events: none;
}

.detail-images.loaded::after {
    display: none;
}

.product-detail-image {
    max-width: 100%;
    border-radius: 15px;
}

.product-detail-image.hidden {
    display: none;
}

.load-more-btn {
    background-color: #ff6b00;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background-color: #ff4500;
    transform: translateY(-2px);
}

/* Reviews Section */
.reviews-container {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
}

.reviews-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    width: 50%;
}

.review-item {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-rating {
    color: #ffa500;
}

.review-rating .fa-star {
    color: #d3d3d3;
    font-size: 14px;
}

.review-rating .fa-star.filled {
    color: #ffd700;
}

.review-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-images {
    display: flex;
    gap: 15px;
}

.review-images img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.review-images img:hover {
    transform: scale(1.05);
}

/* Review Form */
.review-form-container {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 15px;
    width: 50%;
}

.review-form-container h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

#reviewForm input,
#reviewForm textarea,
#reviewForm select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

#reviewForm input[name="customer_name"] {
    width: 100%;
}

#reviewForm textarea[name="review_text"] {
    width: 100%;
}

#reviewForm textarea {
    resize: vertical;
}

.rating-input {
    margin-bottom: 15px;
}

.rating-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Star Rating Styles */
.star-rating {
    display: flex;
    gap: 8px;
    align-items: center;
}

.star-rating .rating-text {
    color: #333;
    margin-left: 10px;
    min-width: 70px;
    font-size: 16px;
}

.star-rating .fa-star {
    font-size: 24px;
    cursor: pointer;
    color: #d3d3d3;
    transition: all 0.2s ease;
}

.star-rating .fa-star.selected {
    color: #ffd700;
}

.star-rating .fa-star.hover {
    color: #ffd700;
    transform: scale(1.1);
}

.star-rating .fa-star:hover {
    transform: scale(1.15);
}

.image-upload {
    margin-bottom: 20px;
}

.image-upload label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.photo-upload-box {
    width: 80px;
    height: 80px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #fafafa;
}

.photo-upload-box:hover {
    border-color: #999;
    background-color: #f0f0f0;
}

.photo-upload-box i {
    font-size: 32px;
    color: #666;
    margin-bottom: 4px;
    font-weight: normal;
}

.photo-upload-box span {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.file-selected-text {
    margin-top: 10px;
    font-size: 13px;
    color: #4CAF50;
    font-weight: 500;
}

#reviewForm button {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

#reviewForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.submit-review-container {
    text-align: center;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        margin-top: 0;
        margin-bottom: 5px;
        padding: 0;
    }

    .main-image-container {
        height: 80vh;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* Tablet specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-detail-container {
        margin-top: -5px;
    }

    .main-image-container {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .thumbnail-images {
        justify-content: center;
    }

    .product-features.mobile-only {
        text-align: center;
        justify-content: center;
        margin-top: -20px;
        margin-bottom: -20px;
    }

    .product-info-section {
        padding: 0 20px;
    }

    #skuDisplay {
        max-width: fit-content;
    }
}

@media (max-width: 768px) {
    .reviews-container {
        flex-direction: column;
    }

    .reviews-list,
    .review-form-container {
        width: 100%;
    }
    .product-detail-container {
        gap: 0;
        overflow-x: hidden;
        margin-top: 0;
        padding: 0;
    }

    .product-title-main {
        font-size: 22px;
    }

    .product-category {
        display: none;
    }

    .product-category-mobile {
        display: inline;
    }

    .current-price-main {
        font-size: 28px;
    }

    .stock-left-badge {
        font-size: 14px;
        padding: 6px 16px;
    }

    .image-gallery {
        gap: 0;
    }

    .image-gallery {
        gap: 0;
        margin-bottom: 20px;
    }

    .slider-image {
        object-fit: contain;
    }

    .thumbnail-images {
        display: none;
    }
    
    /* Mobile Image Navigation Buttons */
    .mobile-image-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 15px 0;
        background: #f8f8f8;
    }
    
    .mobile-nav-btn {
        background: white;
        border: 2px solid #ff6b00;
        color: #ff6b00;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
        transition: all 0.3s;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-nav-btn:active {
        background: #ff6b00;
        color: white;
        transform: scale(0.95);
    }
    
    .mobile-nav-btn i {
        pointer-events: none;
    }

    .thumbnail-image {
        width: 60px;
        height: 60px;
    }



    .color-option img,
    .sticker-option img {
        width: 60px;
        height: 60px;
    }

    .no-sticker-box {
        width: 60px;
        height: 60px;
        font-size: 11px;
        padding: 8px;
        margin-top: 10px;
    }

    .color-option span {
        display: none;
    }

    .color-option {
        min-width: 60px;
        padding: 8px;
        flex-shrink: 0;
    }

    .size-options {
        gap: 10px;
    }

    .size-option {
        min-width: 50px;
        padding: 10px 15px;
        font-size: 14px;
    }

    .product-price-main {
        border-top: none;
        border-bottom: none;
        padding: 5px 0;
    }

    .product-info-section {
        gap: 10px;
        overflow-x: hidden;
        padding: 0 20px;
    }

    .selection-section {
        overflow-x: hidden;
        max-width: 100%;
        padding: 10px 0;
    }

    .qty-selector {
        justify-content: center;
        gap: 10px;
    }

    .qty-selector button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .qty-selector input {
        width: 60px;
        height: 35px;
        font-size: 16px;
    }

    .color-options {
        padding-bottom: 5px;
    }

    .selection-section h3 {
        font-size: 16px;
    }

    .sticker-options {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: 100%;
        width: 100%;
        padding-top: 2px;
    }

    .product-description-container {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {


    .product-title-main {
        font-size: 18px;
    }

    .current-price-main {
        font-size: 24px;
    }

    .stock-left-badge {
        font-size: 13px;
        padding: 6px 14px;
    }

    .main-image-container {
        width: 100vw;
        max-width: 100vw;
        height: 100vw !important;
        min-height: unset !important;
        aspect-ratio: 1 / 1;
        border-radius: 0;
        background-color: #f8f8f8;
        position: relative;
    }

    .slider-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    /* Mobile Image Navigation Buttons - Smaller on very small screens */
    .mobile-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .product-features {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .review-images img {
        width: 80px;
        height: 80px;
    }

    .product-info-section {
        overflow-x: hidden;
        max-width: 100%;
        padding: 0 15px;
    }

    .selection-section {
        overflow-x: hidden;
        max-width: 100%;
    }

    .color-option {
        min-width: 55px;
    }

    .color-option img {
        width: 55px;
        height: 55px;
    }

    .no-sticker-box {
        width: 55px;
        height: 55px;
        font-size: 10px;
        padding: 6px;
        margin-top: 30px;
    }

    .size-options {
        gap: 8px;
    }

    .size-option {
        min-width: 45px;
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Custom Notification Toast */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    min-width: 280px;
}

.notification-toast.hiding {
    animation: slideOutRight 0.3s ease-out;
}

.notification-toast .icon {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-toast .icon svg {
    width: 16px;
    height: 16px;
    fill: #4CAF50;
}

.notification-toast .message {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .notification-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* Cart Side Panel */
.cart-side-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    transition: right 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-side-panel.active {
    right: 0;
}

/* Shift page content left when cart panel is open (desktop only) */
@media (min-width: 769px) {
    body.cart-panel-open .product-detail-container,
    body.cart-panel-open .product-description-container,
    body.cart-panel-open .reviews-container,
    body.cart-panel-open .product-section {
        transform: translateX(-150px);
        transition: transform 0.3s ease-in-out;
    }
    
    body.cart-panel-open .main-header {
        transform: translateX(-150px);
        transition: transform 0.3s ease-in-out;
    }
}

/* Cart Panel Close Button */
.cart-panel-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10002;
    color: #666;
    font-size: 18px;
}

.cart-panel-close-btn:hover {
    background: #ff6b00;
    border-color: #ff6b00;
    color: white;
    transform: scale(1.05);
}

.cart-panel-overlay.active {
    display: block;
    opacity: 1;
}

.cart-panel-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ff6b00;
    color: white;
}

.cart-panel-header h2 {
    font-size: 22px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-panel-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.cart-panel-close:hover {
    transform: scale(1.1);
}

.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-panel-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cart-panel-empty i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-panel-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #fafafa;
    transition: all 0.3s;
}

.cart-panel-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-panel-item-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.cart-panel-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-panel-item-qty {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.cart-panel-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-panel-item-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    line-height: 1.3;
}

.cart-panel-item-attrs {
    font-size: 13px;
    color: #666;
}

.cart-panel-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff6b00;
    margin-top: auto;
}

.cart-panel-item-delete {
    background: #ff4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 14px;
    flex-shrink: 0;
}

.cart-panel-item-delete:hover {
    background: #cc0000;
    transform: scale(1.05);
}

.cart-panel-footer {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    background: #f8f8f8;
}

.cart-panel-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.cart-panel-subtotal-label {
    font-weight: 600;
    color: #333;
}

.cart-panel-subtotal-amount {
    font-size: 14px;
    font-weight: 700;
    color: #666;
}

.cart-panel-shipping {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.cart-panel-shipping-label {
    font-weight: 600;
    color: #333;
}

.cart-panel-shipping-amount {
    font-size: 14px;
    font-weight: 700;
    color: #666;
}

.cart-panel-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 8px;
    border-top: 2px solid #f0f0f0;
    font-size: 16px;
}

.cart-panel-total-label {
    font-weight: 700;
    color: #333;
}

.cart-panel-total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b00;
}

.cart-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-panel-btn {
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.cart-panel-btn-primary {
    background: linear-gradient(135deg, #ff6b00 0%, #ff4500 100%);
    color: white;
    border: none;
}

.cart-panel-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.cart-panel-btn-secondary {
    background: white;
    color: #ff6b00;
    border: 2px solid #ff6b00;
}

.cart-panel-btn-secondary:hover {
    background: #fff3e6;
}

@media (max-width: 480px) {
    .cart-side-panel {
        display: none;
    }

    .cart-panel-item-image {
        width: 60px;
        height: 60px;
    }
}

/* Desktop Color Options Layout */
@media (min-width: 1025px) {
    .color-options {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
        overflow-x: visible;
        max-width: none;
        width: auto;
    }
}

/* Image Modal for Review Images */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.image-modal.show {
    display: block;
}

/* Modal Layout - Desktop */
.modal-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 60px 20px 20px;
}

.image-modal-content {
    max-width: calc(100% - 200px);
    max-height: calc(100vh - 120px);
    object-fit: contain;
    animation: zoomIn 0.3s;
    user-select: none;
    margin-left: 150px;
    will-change: transform, opacity;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    z-index: 10004;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #ff6b00;
    transform: scale(1.2);
}

/* Modal Thumbnails - Desktop Left Side */
.modal-thumbnails {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 10px;
    z-index: 10003;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.modal-thumbnails::-webkit-scrollbar {
    width: 6px;
}

.modal-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.modal-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    opacity: 0.6;
}

.modal-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.modal-thumbnail.active {
    opacity: 1;
    border-color: #ff6b00;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.5);
}

/* Modal Navigation Buttons - Desktop */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    z-index: 10003;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-nav-btn:hover {
    background: #ff6b00;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-prev-btn {
    left: 120px;
}

.modal-next-btn {
    right: 30px;
}

/* Mobile Navigation Buttons - Below Image */
.modal-nav-mobile {
    display: none; /* Hidden by default */
}

.modal-nav-btn-mobile {
    background: white;
    border: 2px solid #ff6b00;
    color: #ff6b00;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-nav-btn-mobile:active {
    background: #ff6b00;
    color: white;
    transform: scale(0.95);
}

.modal-nav-btn-mobile i {
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .modal-image-container {
        padding: 60px 20px 20px;
    }

    .image-modal-content {
        max-width: 100%;
        max-height: calc(100vh - 120px);
        margin-left: 0;
        object-fit: contain;
    }

    /* Hide desktop thumbnails on tablet */
    .modal-thumbnails {
        display: none;
    }

    /* Hide navigation buttons on tablet (iPad Air) */
    .modal-nav-btn,
    .modal-nav-btn.desktop-only,
    .modal-prev-btn,
    .modal-next-btn,
    #modalPrevBtn,
    #modalNextBtn {
        display: none !important;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .modal-image-container {
        padding: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }

    .image-modal-content {
        max-width: 100%;
        max-height: 100vh;
        width: 100%;
        height: 100%;
        margin: 0;
        object-fit: contain;
        will-change: transform, opacity;
    }

    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    /* Hide desktop thumbnails on mobile */
    .modal-thumbnails {
        display: none;
    }

    /* Hide desktop navigation buttons on mobile */
    .modal-nav-btn,
    .modal-nav-btn.desktop-only,
    .modal-prev-btn,
    .modal-next-btn,
    #modalPrevBtn,
    #modalNextBtn {
        display: none !important;
    }

    /* Show mobile navigation buttons below image */
    .modal-nav-mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 20px 0;
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        z-index: 10005;
    }
}


