.wrd-product-image-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: stretch;
    margin-top: 0 !important;
}

.wrd-product-image-banner__inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrd-product-image-banner__image,
.wrd-product-image-banner__inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wrd-product-image-banner.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.wrd-product-image-banner.alignwide {
    max-width: var(--wp--style--global--wide-size, 1280px);
}

.wrd-product-image-banner-placeholder,
.wrd-product-image-banner-error {
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    color: #666;
}

.wrd-product-image-banner-error {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Dark gradient overlay at top */
.wrd-product-image-banner__gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Content wrapper - respects content width */
.wrd-product-image-banner__content-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1280px);
    padding: 0 var(--wp--style--root--padding-left, 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

.wrd-product-image-banner__content-wrapper > * {
    pointer-events: auto;
}

/* Breadcrumbs at top left */
.wrd-product-image-banner__breadcrumbs {
    padding-top: 20px;
}

.wrd-product-image-banner__breadcrumbs .woocommerce-breadcrumb {
    color: #ffffff;
    line-height: 1.5;
}

.wrd-product-image-banner__breadcrumbs .woocommerce-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.wrd-product-image-banner__breadcrumbs .woocommerce-breadcrumb a:hover {
    opacity: 0.8;
}

.wrd-product-image-banner__breadcrumbs .breadcrumb-separator {
    margin: 0 8px;
    opacity: 0.7;
}

/* Bottom row container */
.wrd-product-image-banner__bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 0;
}

/* Discount badge - black wedge */
.wrd-product-image-banner__discount-badge {
    position: relative;
    flex-shrink: 0;
}

.discount-badge__wedge {
    position: relative;
    background-color: #000000;
    color: #ffffff;
    padding: 16px 24px;
    line-height: 1.2;
    border-radius: 8px 8px 0 0;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-badge__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discount-badge__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.discount-badge__text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.discount-badge__percentage {
    display: block;
    line-height: 1;
}

.discount-badge__off {
    display: block;
    opacity: 0.9;
    margin-top: 2px;
}

/* Icon at bottom right */
.wrd-product-image-banner__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}

.wrd-product-image-banner__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Zoom button */
.wrd-product-image-banner__zoom-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background-color 0.2s, transform 0.2s;
    pointer-events: auto;
}

.wrd-product-image-banner__zoom-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateX(-50%) scale(1.1);
}

.wrd-product-image-banner__zoom-btn svg {
    width: 24px;
    height: 24px;
}

/* Lightbox */
.wrd-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrd-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s;
}

.wrd-lightbox__close:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.wrd-lightbox__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrd-lightbox__image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    cursor: grab;
}

.wrd-lightbox__image-container.dragging {
    cursor: grabbing;
}

.wrd-lightbox__image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    object-position: center;
    user-select: none;
}

.wrd-lightbox__image.zoomed {
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%) scale(2.5);
    transform-origin: center center;
}

/* Minimap */
.wrd-lightbox__minimap {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 200px;
    max-height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.wrd-lightbox__minimap-image {
    display: block;
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.wrd-lightbox__minimap-viewport {
    position: absolute;
    border: 2px solid #fff;
    background-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transition: left 0.1s ease, top 0.1s ease;
}

@media (max-width: 768px) {
    .wrd-product-image-banner {
        height: 300px;
    }
    
    .wrd-product-image-banner__zoom-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
    }
    
    .wrd-product-image-banner__zoom-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .wrd-lightbox__minimap {
        max-width: 120px;
        max-height: 90px;
        bottom: 10px;
    }
    
    .wrd-lightbox__minimap-image {
        max-width: 120px;
        max-height: 90px;
    }
    
    .discount-badge__wedge {
        padding: 12px 16px;
        min-width: 80px;
        gap: 6px;
    }
    
    .wrd-product-image-banner__icon {
        width: 60px;
        height: 60px;
    }
}

/* Product Navigation Arrows */
.wrd-product-navigation {
    width: 100%;
    padding: 0 20px;
    margin-top: 20px;
    margin-bottom: -60px;
    position: relative;
}

.wrd-product-navigation__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.wrd-product-navigation__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: transparent;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.wrd-product-navigation__arrow:hover {
    color: #666;
    transform: scale(1.1);
}

.wrd-product-navigation__arrow:focus {
    outline: none;
}

.wrd-product-navigation__arrow:active {
    outline: none;
}

.wrd-product-navigation__arrow svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.wrd-product-navigation__arrow--disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .wrd-product-navigation {
        padding: 0 15px;
        margin-top: 15px;
        margin-bottom: 0;
    }
    
    .wrd-product-navigation__arrow {
        width: 40px;
        height: 40px;
    }
    
    .wrd-product-navigation__arrow svg {
        width: 28px;
        height: 28px;
    }
}
