/* Main Product Container Styles */
.main-product-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.main-product-card {
    padding: 0;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    border-radius: 17px;
    border: 2px solid #D4AF37;
}

.main-product-header {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    padding: 15px 0 0;
}

.main-product-header h4 {
    font-weight: 700;
    color: #fff;
    font-size: 18px;
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #000000 0%, #D4AF37 100%);
    border: 1px solid #D4AF37;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}

.main-product-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 20px 20px;
}

.main-product-gallery {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.product-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 3px solid #000000;
}

.main-product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.main-product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: none;
    background: #ffffff;
    display: block;
    cursor: pointer;
}

.main-product-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #D4AF37 0%, #FCF6BA 100%);
    color: #000000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(229, 200, 71, 0.5);
    text-transform: uppercase;
    z-index: 10;
    min-width: 50px;
    text-align: center;
}

.variation-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000000;
    backdrop-filter: blur(5px);
    padding: 12px 15px;
    border-radius: 0;
    z-index: 3;
    border: none;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: 0;
}

.variation-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.variation-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.variation-label {
    font-weight: 600;
    color: #ffffff;
    font-size: 9px;
    margin-right: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.color-options {
    display: flex;
    gap: 4px;
}

.color-option {
    width: 16px;
    height: 16px;
    border-radius: 20%;
    border: 1px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(229, 200, 71, 0.8);
    z-index: 5;
}

.color-option.selected {
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(229, 200, 71, 0.9);
}

.color-option.selected::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0,0,0,0.8);
    font-size: 8px;
}

.size-options {
    display: flex;
    gap: 3px;
}

.size-option {
    padding: 3px 8px;
    border: 1px solid #ffffff;
    border-radius: 0;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: #ffffff;
    background: transparent;
}

.size-option:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 5;
}

.size-option.selected {
    background: #D4AF37;
    color: #000000;
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(229, 200, 71, 0.9);
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    background: #ffffff;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: #D4AF37;
}

.thumbnail.active {
    border-color: #D4AF37;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(229, 200, 71, 0.3);
}

.main-product-details {
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.price-info-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 15px 0;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    gap: 15px;
}

.price-info-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.final-price-amount {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff !important;
    font-size: 36px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 12px;
    line-height: 1.1;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    cursor: pointer;
}

.final-price-amount::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(90deg, #000000, #D4AF37, #000000);
    background-size: 200% 100%;
    border-radius: 12px;
    z-index: -1;
}

.final-price-amount:hover {
    transform: scale(1.05);
}

.final-price-amount, .final-price-amount span {
    color: #ffffff !important;
}

.sale-price {
    color: #28a745;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    background: rgba(40, 167, 69, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.action-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: nowrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.qty-btn {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qty-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.qty-btn:hover::before {
    left: 100%;
}

.qty-btn:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #4d4d4d 100%);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 50px;
    height: 35px;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: white;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-cart {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #1a1a1a 0%, #4d4d4d 100%);
}

.btn-buy {
    background: linear-gradient(135deg, #D4AF37 0%, #FCF6BA 100%);
    color: #ffffff;
    border: 2px solid #000000;
    box-shadow: 0 4px 15px rgba(229, 200, 71, 0.3);
    position: relative;
    z-index: 1;
}

.btn-buy::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, #000000, #D4AF37, #000000);
    background-size: 200% 100%;
    border-radius: 25px;
    z-index: -1;
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 200, 71, 0.5);
    background: linear-gradient(135deg, #D4AF37 0%, #FCF6BA 100%);
}

.currency-symbol {
    font-size: 0.9em;
    margin-right: 1px;
    color: inherit;
}

/* Black-Gold Theme for Headers */
.container-header {
    background: linear-gradient(135deg, #000000 0%, #D4AF37 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Align with border */
    border-top-left-radius: 17px; /* Match card border radius */
    border-top-right-radius: 17px; /* Match card border radius */
}

.container-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white; /* Ensure title is white */
}

.container-header p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.bundle-header {
    background: linear-gradient(135deg, #000000 0%, #D4AF37 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bundle-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.suggested-header {
    background: linear-gradient(135deg, #000000 0%, #D4AF37 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.suggested-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.totals-header {
    background: linear-gradient(135deg, #000000 0%, #D4AF37 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.totals-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .main-product-container {
        padding: 0;
        margin: 20px 0;
        width: 100%;
    }
    
    .main-product-card {
        padding: 20px;
        margin: 20px 0;
        border: 1px solid #D4AF37; /* Thinner border for mobile */
    }
    
    .main-product-image {
        height: 350px; /* Increased height for mobile */
        width: 100%; /* Double width for mobile */
    }
    
    .thumbnail {
        width: 60px; /* Increased thumbnail size for mobile */
        height: 60px;
    }
    
    .main-product-header h4 {
        font-size: 16px;
        padding: 6px 15px;
    }
    
    .price-info-inline {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 8px;
    }
    .price-info-inline .price-ui-wrapper { order: 0; }
    .price-info-inline .quantity-selector { order: 1; }
    
    .price-info-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .final-price-amount {
        font-size: 28px;
        padding: 8px 16px;
    }
    
    .sale-price {
        font-size: 12px;
        padding: 2px 4px;
    }
    
    .quantity-selector {
        width: auto;
        max-width: 100px;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .qty-input {
        width: 40px;
        height: 28px;
        font-size: 12px;
    }
    
    .action-section {
        flex-direction: row;
        gap: 8px;
        margin-top: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        width: 100%;
    }
    
    .btn {
        width: auto;
        min-width: 110px;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .main-product-gallery {
        max-width: 100%;
        padding: 0 5px; /* Small gap on sides */
    }
    
    .main-product-image-wrapper {
        border-radius: 12px;
    }
    
    .main-product-image {
        border-radius: 10px;
    }
    
    .gallery-thumbnails {
        gap: 8px;
    }
    
    .thumbnail {
        width: 60px; /* Increased thumbnail size for mobile */
        height: 60px;
        border-radius: 8px;
    }
    
    .variation-selection {
        padding: 6px 8px;
    }
    
    .color-option {
        width: 12px;
        height: 12px;
    }
    
    .size-option {
        padding: 2px 4px;
        font-size: 7px;
    }
    
    .wpb-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }
    
    .wpb-modal-header h3 {
        font-size: 16px;
    }
    
    .wpb-modal-body {
        padding: 15px;
    }
    
    .wpb-modal-footer {
        padding: 10px 15px;
    }
    
    .note-textarea {
        min-height: 120px;
    }
    
    .exchange-products-list {
        grid-template-columns: repeat(2, 1fr); /* Show 2 products side by side */
        gap: 8px;
    }
    
    .exchange-product-item {
        padding: 8px;
    }
    
    .exchange-product-item img {
        width: 80px;
        height: 80px;
    }
    
    /* Product Popup Mobile Styles */
    .product-popup-main-image img {
        max-height: 250px;
    }
    
    .product-popup-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    /* Exchange Product Popup Mobile Styles */
    .exchange-product-popup-main-image img {
        max-height: 250px;
    }
    
    .exchange-product-popup-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    /* Fullscreen Slider Mobile Styles */
    .fullscreen-slider-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
        top: 15px;
        right: 15px;
    }
    
    .fullscreen-slider-inner {
        width: 95%;
        height: 95%;
    }
    
    .fullscreen-slider-image {
        max-height: 70%; /* Adjusted for mobile */
    }
    
    .fullscreen-slider-thumbnails {
        max-height: 20%; /* Adjusted for mobile */
    }
    
    .fullscreen-slider-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .fullscreen-slider-prev,
    .fullscreen-slider-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    /* Mobile adjustments for black-gold theme */
    .container-header {
        margin: -15px -15px 15px -15px; /* Negative margins to align with border */
        border-radius: 17px 17px 0 0; /* Match card border radius */
    }
    
    .container-header h2 {
        font-size: 18px;
    }
    
    .container-header p {
        font-size: 12px;
    }
    
    .bundle-header h3 {
        font-size: 16px;
    }
    
    .suggested-header h4 {
        font-size: 16px;
    }
    
    .totals-header h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .main-product-container {
        padding: 0;
        margin: 12px 0;
        width: 100%;
    }
    
    .main-product-card {
        padding: 12px;
        margin: 12px 0;
        border: 1px solid #D4AF37; /* Thinner border for mobile */
    }
    
    .main-product-image {
        height: 400px; /* Increased height for small mobile */
        width: 100%; /* Double width for small mobile */
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .main-product-header h4 {
        font-size: 14px;
        padding: 5px 12px;
    }
    
    .price-info-inline {
        justify-content: space-between;
        gap: 8px;
        padding: 6px;
    }
    
    .final-price-amount {
        font-size: 24px;
        padding: 6px 12px;
    }
    
    .sale-price {
        font-size: 11px;
        padding: 1px 4px;
    }
    
    .quantity-selector {
        max-width: 90px;
    }
    
    .qty-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .qty-input {
        width: 36px;
        height: 26px;
        font-size: 11px;
    }
    
    .action-section {
        gap: 6px;
        margin-top: 8px;
    }
    
    .btn {
        min-width: 100px;
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .gallery-thumbnails {
        gap: 6px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }
    
    .variation-selection {
        padding: 4px 6px;
    }
    
    .color-option {
        width: 10px;
        height: 10px;
    }
    
    .size-option {
        padding: 2px 4px;
        font-size: 7px;
    }
    
    .wpb-modal-content {
        width: 98%;
        margin: 15% auto;
        max-height: 75vh;
    }
    
    .wpb-modal-header h3 {
        font-size: 14px;
    }
    
    .wpb-modal-body {
        padding: 12px;
    }
    
    .wpb-modal-footer {
        padding: 8px 12px;
    }
    
    .note-textarea {
        min-height: 100px;
        font-size: 13px;
    }
    
    .exchange-products-list {
        grid-template-columns: 1fr; /* Single column for very small screens */
        gap: 6px;
    }
    
    .exchange-product-item {
        padding: 6px;
    }
    
    .exchange-product-item img {
        width: 70px;
        height: 70px;
    }
    
    /* Product Popup Small Mobile Styles */
    .product-popup-main-image img {
        max-height: 200px;
    }
    
    .product-popup-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    /* Exchange Product Popup Small Mobile Styles */
    .exchange-product-popup-main-image img {
        max-height: 200px;
    }
    
    .exchange-product-popup-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    /* Fullscreen Slider Small Mobile Styles */
    .fullscreen-slider-close {
        width: 35px;
        height: 35px;
        font-size: 25px;
        top: 10px;
        right: 10px;
    }
    
    .fullscreen-slider-inner {
        width: 98%;
        height: 98%;
    }
    
    .fullscreen-slider-image {
        max-height: 65%; /* Adjusted for small mobile */
    }
    
    .fullscreen-slider-thumbnails {
        max-height: 25%; /* Adjusted for small mobile */
    }
    
    .fullscreen-slider-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .fullscreen-slider-prev,
    .fullscreen-slider-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    /* Mobile adjustments for black-gold theme */
    .container-header {
        margin: -12px -12px 15px -12px; /* Adjust for smaller padding */
    }
    
    .container-header h2 {
        font-size: 16px;
    }
    
    .container-header p {
        font-size: 11px;
    }
    
    .bundle-header h3 {
        font-size: 14px;
    }
    
    .suggested-header h4 {
        font-size: 14px;
    }
    
    .totals-header h4 {
        font-size: 14px;
    }
}

/* Full screen optimization */
@media (min-width: 1600px) {
    .main-product-container,
    .wpb-bundle-container {
        max-width: 1800px;
        margin: 40px auto;
    }
    
    .main-product-gallery {
        max-width: 500px;
    }
    
    .main-product-image {
        height: 350px;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .final-price-amount {
        font-size: 48px;
        padding: 15px 30px;
    }
    
    .sale-price {
        font-size: 16px;
        padding: 4px 8px;
    }
    
    .wpb-bundle-product-card {
        padding: 25px;
    }
    
    .wpb-bundle-product-card img {
        width: 80px;
        height: 80px;
    }
    
    .bundle-header h3 {
        font-size: 24px;
    }
    
    .action-section {
        gap: 20px;
    }
    
    .btn {
        min-width: 180px;
        padding: 16px 28px;
        font-size: 18px;
    }
    
    .qty-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .qty-input {
        width: 70px;
        height: 45px;
        font-size: 18px;
    }
    
    /* Product Popup Full Screen Styles */
    .product-popup-main-image img {
        max-height: 500px;
    }
    
    .product-popup-thumbnail {
        width: 100px;
        height: 100px;
    }
    
    /* Exchange Product Popup Full Screen Styles */
    .exchange-product-popup-main-image img {
        max-height: 500px;
    }
    
    .exchange-product-popup-thumbnail {
        width: 100px;
        height: 100px;
    }
    
    /* Fullscreen Slider Full Screen Styles */
    .fullscreen-slider-close {
        width: 60px;
        height: 60px;
        font-size: 40px;
        top: 30px;
        right: 30px;
    }
    
    .fullscreen-slider-inner {
        width: 90%;
        height: 90%;
    }
    
    .fullscreen-slider-image {
        max-height: 80%;
    }
    
    .fullscreen-slider-thumbnails {
        max-height: 15%;
    }
    
    .fullscreen-slider-thumbnail {
        width: 100px;
        height: 100px;
    }
    
    .fullscreen-slider-prev,
    .fullscreen-slider-next {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

/* Ultra wide screen optimization */
@media (min-width: 2000px) {
    .main-product-container,
    .wpb-bundle-container {
        max-width: 2000px;
    }
    
    .main-product-gallery {
        max-width: 600px;
    }
    
    .main-product-image {
        height: 400px;
    }
    
    .thumbnail {
        width: 100px;
        height: 100px;
    }
    
    .final-price-amount {
        font-size: 54px;
        padding: 18px 35px;
    }
    
    /* Product Popup Ultra Wide Styles */
    .product-popup-main-image img {
        max-height: 600px;
    }
    
    .product-popup-thumbnail {
        width: 120px;
        height: 120px;
    }
    
    /* Exchange Product Popup Ultra Wide Styles */
    .exchange-product-popup-main-image img {
        max-height: 600px;
    }
    
    .exchange-product-popup-thumbnail {
        width: 120px;
        height: 120px;
    }
    
    /* Fullscreen Slider Ultra Wide Styles */
    .fullscreen-slider-close {
        width: 70px;
        height: 70px;
        font-size: 45px;
        top: 40px;
        right: 40px;
    }
    
    .fullscreen-slider-inner {
        width: 85%;
        height: 85%;
    }
    
    .fullscreen-slider-image {
        max-height: 85%;
    }
    
    .fullscreen-slider-thumbnails {
        max-height: 12%;
    }
    
    .fullscreen-slider-thumbnail {
        width: 120px;
        height: 120px;
    }
    
    .fullscreen-slider-prev,
    .fullscreen-slider-next {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
}


/* ============================================================
   HD GOLD PREMIUM OVERRIDE (match checkout mockup)
   ============================================================ */
:root{
    --hd-gold-dark:#8a6d3b; --hd-gold-mid:#BF953F; --hd-gold-bright:#FCF6BA;
    --hd-gold-shine:#D4AF37; --hd-gold-grad:linear-gradient(135deg,#BF953F 0%,#FCF6BA 45%,#B38728 100%);
}
.btn-buy, .btn-cart{ border-radius:50px !important; font-weight:800 !important; letter-spacing:.5px; }
.btn-buy{ background:var(--hd-gold-grad) !important; color:#111 !important; border:2px solid #B38728 !important;
    box-shadow:0 8px 20px rgba(191,149,63,.4) !important; text-shadow:0 1px 0 rgba(255,255,255,.3); }
.btn-buy:hover{ filter:brightness(1.05); background:var(--hd-gold-grad) !important; }
.btn-cart{ background:linear-gradient(135deg,#111 0%,#333 100%) !important; color:#FCF6BA !important; border:2px solid var(--hd-gold-mid) !important; }
.qty-btn{ color:var(--hd-gold-dark) !important; }
.qty-input{ font-weight:800 !important; color:#222 !important; }
.variation-option.active, .variation-option.selected, .v-pill.active,
.variation-selection .active{ background:var(--hd-gold-mid) !important; color:#fff !important; border-color:var(--hd-gold-mid) !important; }
.sale-badge{ background:var(--hd-gold-grad) !important; color:#111 !important; }
.wpb-bundle-product-card{ border:1px solid var(--hd-gold-mid) !important; box-shadow:0 4px 12px rgba(191,149,63,.12) !important; }
.wpb-bundle-product-card:hover{ box-shadow:0 8px 22px rgba(191,149,63,.25) !important; }
.note-option-container{ background:rgba(191,149,63,.10) !important; border:1px solid rgba(191,149,63,.35) !important; }
.exchange-option-container{ background:rgba(138,109,59,.08) !important; border:1px solid rgba(191,149,63,.3) !important; }

/* Upgrade modal — sectioned (recommended first) + badges */
.exch-section-title{ grid-column:1/-1; width:100%; margin:6px 0 4px; font-weight:800; font-size:0.85rem; color:#8a6d3b;
    padding:6px 10px; background:linear-gradient(135deg,rgba(191,149,63,.14),rgba(252,246,186,.25)); border-radius:8px; border-left:3px solid #BF953F; }
.exch-loading{ grid-column:1/-1; text-align:center; padding:14px; color:#8a6d3b; font-size:0.8rem; }
.exchange-product-item{ position:relative; }
.exch-badge{ position:absolute; top:6px; left:6px; z-index:2; background:linear-gradient(135deg,#BF953F,#B38728); color:#fff;
    font-size:0.55rem; font-weight:800; padding:2px 7px; border-radius:20px; text-transform:uppercase; letter-spacing:.4px; box-shadow:0 2px 6px rgba(191,149,63,.4); }
.exch-mrp{ color:#999; text-decoration:line-through; font-size:0.72rem; font-weight:500; margin-left:4px; }
.exchange-product-item .add-exchange-btn{ background:linear-gradient(135deg,#BF953F,#8a6d3b) !important; color:#fff !important; border:none !important; }

/* ============================================================
   HD GOLD — Mockup compact bundle card layout
   ============================================================ */
.p-card-hd{ position:relative; margin:10px 0; padding:12px; border-radius:12px; border:1px solid var(--hd-gold-mid,#BF953F);
    background:#fff; box-shadow:0 4px 12px rgba(191,149,63,.12); }
/* Override the inline !important rules so the close (x) flows inside the top cluster and stays visible */
.p-card-hd .p-topctrl-hd .bundle-remove-btn{ position:static !important; top:auto !important; right:auto !important; left:auto !important;
    opacity:1 !important; width:26px !important; height:26px !important; min-width:26px !important; max-width:26px !important;
    border-radius:50% !important; flex:none; background:#fdecea !important; border:none !important; color:#e74c3c !important;
    display:flex !important; align-items:center; justify-content:center; font-size:16px !important; line-height:1 !important;
    cursor:pointer; z-index:5; box-shadow:0 2px 6px rgba(231,76,60,.22) !important; }
.p-card-hd .p-topctrl-hd .bundle-remove-btn:hover{ background:#e74c3c !important; color:#fff !important; }

/* Top-right control cluster: Upgrade + close on one row, quantity below the close */
.p-topctrl-hd{ position:absolute; top:10px; right:10px; z-index:6; display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.p-tr-row{ display:flex; align-items:center; gap:6px; }
.p-topctrl-hd .qty-box-hd{ margin:0; }
.p-up-mini{ display:inline-flex; align-items:center; gap:5px; white-space:nowrap; max-width:150px; overflow:hidden;
    text-overflow:ellipsis; background:var(--gold-gradient,linear-gradient(135deg,#BF953F,#FCF6BA 45%,#B38728)); color:#111 !important;
    border:1px solid #B38728; border-radius:20px; font-size:0.7rem; font-weight:800; padding:5px 12px; cursor:pointer;
    box-shadow:0 2px 6px rgba(191,149,63,.35); text-transform:uppercase; letter-spacing:.3px; }
.p-up-mini:hover{ filter:brightness(1.05); }
.p-up-mini.exchange-added{ background:#fdf6e3; }

.p-main-hd{ display:flex; gap:12px; align-items:flex-start; }
.p-img-hd{ position:relative; width:40px; height:40px; border-radius:6px; overflow:hidden; border:1px solid #eee; flex-shrink:0; }
.p-img-hd img{ width:100%; height:100%; object-fit:cover; display:block; }
.p-qtybadge{ position:absolute; top:-2px; right:-2px; background:linear-gradient(135deg,#BF953F,#8a6d3b); color:#fff;
    font-size:11px; font-weight:800; padding:1px 6px; border-radius:10px; box-shadow:0 2px 6px rgba(191,149,63,.4); }
.p-info-hd{ flex:1; min-width:0; padding-right:8px; }
.p-title-hd{ font-size:0.7rem; font-weight:600; color:#222; margin-bottom:4px; cursor:pointer; line-height:1.15; padding-right:92px; }
.p-offer-hd{ display:inline-block; background:linear-gradient(135deg,#BF953F,#B38728); color:#fff; font-size:0.5rem;
    font-weight:800; padding:1px 6px; border-radius:20px; text-transform:uppercase; letter-spacing:.3px; margin-bottom:4px; }
/* Image-corner discount/free tag on child product photo (matches suggestion products) */
.p-imgtag-hd{ position:absolute; top:3px; left:3px; z-index:5; color:#fff; font-weight:800;
    font-size:8.5px; line-height:1; padding:3px 5px; border-radius:9px; box-shadow:0 2px 5px rgba(0,0,0,.3); }
.p-imgtag-disc{ background:linear-gradient(135deg,#ff4757,#ff3838); }
.p-imgtag-free{ background:linear-gradient(135deg,#BF953F,#D4AF37); }
.p-price-hd{ display:flex; align-items:baseline; gap:6px; margin:2px 0 6px; }
.p-sell-hd{ font-size:0.82rem; font-weight:800; color:var(--hd-gold-dark,#8a6d3b); }
.p-mrp-hd{ font-size:0.65rem; color:#999; text-decoration:line-through; }
.p-controls-hd{ display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
.v-pills-hd{ display:flex; gap:5px; flex-wrap:wrap; }
.v-pill-hd{ font-size:0.62rem; padding:3px 9px; border-radius:6px; border:1px solid #ddd; font-weight:700; color:#555;
    cursor:pointer; transition:all .2s; background:#fff; }
.v-pill-hd:hover{ border-color:var(--hd-gold-mid,#BF953F); }
.v-pill-hd.active{ background:var(--hd-gold-mid,#BF953F); color:#fff; border-color:var(--hd-gold-mid,#BF953F); }
.qty-box-hd{ display:flex; align-items:center; background:#f6f2e6; border:1px solid #e2d9bf; border-radius:8px; height:18px; overflow:hidden; }
.qty-btn-hd{ width:18px; height:18px; display:flex; align-items:center; justify-content:center; text-align:center; color:#8a6d3b; font-weight:800; font-size:0.8rem; user-select:none; }
.qty-val-hd{ width:18px; text-align:center; font-size:0.7rem; font-weight:500; color:#222; }
.p-actions-hd{ display:flex; gap:8px; margin-top:12px; padding-top:10px; border-top:1px dashed #e6dcc2; }
.btn-up-hd{ flex:2; background:var(--gold-gradient,linear-gradient(135deg,#BF953F,#FCF6BA 45%,#B38728)); color:#111 !important;
    border:1px solid #B38728; border-radius:8px; font-size:0.72rem; font-weight:800; padding:8px 10px; cursor:pointer;
    box-shadow:0 3px 8px rgba(191,149,63,.35); text-transform:uppercase; letter-spacing:.3px; }
.btn-up-hd:hover{ filter:brightness(1.05); }
.btn-note-hd{ flex:1; background:#fff; border:1px solid var(--hd-gold-mid,#BF953F); border-radius:8px;
    color:var(--hd-gold-dark,#8a6d3b) !important; font-size:0.6rem; font-weight:800; padding:5px 8px; cursor:pointer; }
.btn-note-hd.note-added{ background:#fdf6e3; }

/* HD Gold accordion section header (mockup) */
.hd-acc-bar{ display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer;
    padding:12px 16px; margin:14px 0 10px; border-radius:12px;
    background:linear-gradient(135deg,#111,#333); border:1px solid #BF953F; border-bottom:2px solid #BF953F;
    box-shadow:0 4px 14px rgba(0,0,0,.25); }
.hd-acc-bar .hd-acc-title{ display:flex; flex-direction:column; gap:2px; }
.hd-acc-bar h3{ margin:0; font-size:1rem; font-weight:800; text-transform:uppercase; letter-spacing:.5px;
    background:linear-gradient(135deg,#BF953F 0%,#FCF6BA 45%,#B38728 100%); -webkit-background-clip:text; background-clip:text;
    -webkit-text-fill-color:transparent; }
.hd-acc-sub{ font-size:0.68rem; font-weight:600; color:#FCF6BA; opacity:.9; }
.hd-acc-chev{ color:#BF953F; transition:transform .3s ease; }
.hd-acc-bar.wpb-collapsed .hd-acc-chev{ transform:rotate(-90deg); }

/* Admin custom upgrade option — slim gold pill (keeps title + photo) */
.up-custom-row{ display:inline-flex; align-items:center; gap:7px; margin-top:9px; padding:3px 12px 3px 4px; cursor:pointer;
    border-radius:20px; background:rgba(191,149,63,.10);
    border:1px solid rgba(191,149,63,.45); transition:all .2s ease; max-width:100%; }
.up-custom-row:hover{ background:rgba(191,149,63,.2); border-color:#BF953F; }
.up-custom-row.exchange-added{ background:rgba(191,149,63,.22); }
.up-custom-row .up-cust-img{ width:24px !important; height:24px !important; border-radius:50% !important; object-fit:cover; flex:none; margin:0 !important; border:1px solid rgba(191,149,63,.5); }
.up-cust-ico{ width:22px; height:22px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg,#BF953F,#8a6d3b); color:#fff; font-size:11px; }
.up-cust-title{ flex:1; min-width:0; font-size:0.72rem; font-weight:700; color:#8a6d3b;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.up-cust-arrow{ color:#BF953F; font-size:11px; flex:none; }

/* Compact "upgraded" state (no duplicate product card) */
.up-done-row{ display:flex; align-items:center; gap:12px; margin-top:10px; padding-top:8px; border-top:1px dashed #e6dcc2; }
.up-done-tag{ font-size:0.72rem; font-weight:700; color:#8a6d3b; background:rgba(191,149,63,.15);
    padding:3px 10px; border-radius:20px; }
.up-done-tag i{ margin-right:4px; color:#BF953F; }
.up-link{ background:none; border:none; padding:0; cursor:pointer; font-size:0.75rem; font-weight:600; }
button.cancel-exchange-btn.up-link{ color:#999; }
button.change-exchange-btn.up-link{ color:#8a6d3b; }
.up-link:hover{ text-decoration:underline; }

/* Highlighted animated titles — upgrade + note (black text on shimmering gold) */
@keyframes hdTitleShimmer{ 0%{ background-position:0% 50%; } 100%{ background-position:200% 50%; } }
.up-custom-row .up-cust-title,
.btn-note-hd{
    color:#111 !important;
    background:linear-gradient(90deg,#B38728,#FCF6BA,#BF953F,#FCF6BA,#B38728) !important;
    background-size:200% 100% !important;
    animation:hdTitleShimmer 2.6s linear infinite;
    border:1px solid #B38728 !important;
    border-radius:20px !important;
    padding:3px 10px !important;
    font-size:0.6rem !important;
    font-weight:800 !important;
    text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.up-custom-row .up-cust-title{ box-shadow:0 2px 6px rgba(191,149,63,.35); }
.btn-note-hd{ box-shadow:0 2px 6px rgba(191,149,63,.35); }
.btn-note-hd i{ color:#111 !important; }
.note-charge{ font-weight:800; color:#7a1f1f; background:rgba(0,0,0,.10); padding:0 6px; border-radius:8px; margin-left:2px; }
@media (prefers-reduced-motion: reduce){ .up-custom-row .up-cust-title, .btn-note-hd{ animation:none; } }

/* Folded variation popup — "Color change now" toggle + collapsible pills panel */
.v-fold-hd{ margin-top:10px; }
.v-fold-toggle{ display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%;
    background:#fff; border:1px solid var(--hd-gold-mid,#BF953F); border-radius:10px;
    color:var(--hd-gold-dark,#8a6d3b); font-size:0.76rem; font-weight:800; padding:8px 12px; cursor:pointer;
    box-shadow:0 2px 6px rgba(191,149,63,.15); }
.v-fold-toggle:hover{ background:#fdf6e3; }
.v-fold-toggle i.fa-palette{ color:var(--hd-gold-mid,#BF953F); margin-right:6px; }
.v-fold-chev{ color:var(--hd-gold-mid,#BF953F); font-size:11px; transition:transform .2s ease; }
.v-fold-hd.open .v-fold-toggle{ background:#fdf6e3; border-color:#B38728; }
.v-fold-hd.open .v-fold-chev{ transform:rotate(180deg); }
.v-fold-panel{ display:none; margin-top:8px; padding:10px; border:1px dashed #e2d9bf; border-radius:10px; background:#fbf8ef; }
