/* Swiper CSS fallbacks to prevent stacking */
.swiper {
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    display: block;
}
.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex !important;
    flex-direction: row !important;
    transition-property: transform;
    box-sizing: content-box;
}
.swiper-slide {
    flex-shrink: 0 !important;
    width: 100% !important;
    height: auto !important;
    position: relative;
    transition-property: transform;
}

.pig-11223-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    position: relative !important;
}
.pig-11223-container.layout-left {
    flex-direction: row-reverse;
}
.pig-11223-main-area {
    position: relative !important;
    flex: 1;
    min-width: 0;
}
.pig-11223-wrapper {
    position: relative !important;
}
.pig-11223-slider {
    width: 100%;
    overflow: hidden;
    position: relative !important;
}
.pig-11223-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.pig-11223-counter {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    z-index: 100 !important;
}
.pig-11223-badges {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}
.pig-11223-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}
.pig-11223-badge.sale {
    background-color: #2ecc71;
    color: white;
}
.pig-11223-badge.out-of-stock {
    background-color: #e74c3c;
    color: white;
}
.pig-11223-thumbnails-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pig-11223-container.layout-left .pig-11223-thumbnails-wrapper {
    flex-direction: column;
    width: 80px;
    flex-shrink: 0;
}
.pig-11223-thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.pig-11223-thumbnail.active {
    border-color: #3498db;
}
.pig-11223-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pig-11223-desktop-only {
    display: flex !important;
}
@media (max-width: 767px) {
    .pig-11223-desktop-only {
        display: none !important;
    }
}

/* HIGH SPECIFICITY NAVIGATION OVERRIDES TO PREVENT BOTTOM CORNER CLUSTERING */
.pig-11223-container .swiper-button-prev,
.pig-11223-container .swiper-button-next,
.pig-11223-wrapper .swiper-button-prev,
.pig-11223-wrapper .swiper-button-next,
.elementor-widget-product_image_gallery_11223 .swiper-button-prev,
.elementor-widget-product_image_gallery_11223 .swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    bottom: auto !important;
    z-index: 9999 !important;
    cursor: pointer !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease-in-out !important;
}

.pig-11223-container .swiper-button-prev:hover,
.pig-11223-container .swiper-button-next:hover,
.pig-11223-wrapper .swiper-button-prev:hover,
.pig-11223-wrapper .swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

/* Ensure Prev Arrow is stuck to left side of the gallery slider */
.pig-11223-wrapper .swiper-button-prev,
.pig-11223-container .swiper-button-prev,
.elementor-widget-product_image_gallery_11223 .swiper-button-prev {
    left: 15px !important;
    right: auto !important;
}

/* Ensure Next Arrow is stuck to right side of the gallery slider */
.pig-11223-wrapper .swiper-button-next,
.pig-11223-container .swiper-button-next,
.elementor-widget-product_image_gallery_11223 .swiper-button-next {
    right: 15px !important;
    left: auto !important;
}

/* Hide default icons completely */
.pig-11223-container .swiper-button-prev::after,
.pig-11223-container .swiper-button-next::after,
.pig-11223-wrapper .swiper-button-prev::after,
.pig-11223-wrapper .swiper-button-next::after,
.elementor-widget-product_image_gallery_11223 .swiper-button-prev::after,
.elementor-widget-product_image_gallery_11223 .swiper-button-next::after {
    display: none !important;
}

/* Custom Orange Chevron styling */
.pig-11223-container .swiper-button-prev::before,
.pig-11223-container .swiper-button-next::before,
.pig-11223-wrapper .swiper-button-prev::before,
.pig-11223-wrapper .swiper-button-next::before {
    content: "" !important;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    border-style: solid !important;
    border-color: #e27225 !important; /* Custom theme orange */
    border-width: 0 3px 3px 0 !important;
}

.pig-11223-container .swiper-button-next::before,
.pig-11223-wrapper .swiper-button-next::before {
    transform: rotate(-45deg) !important;
    margin-right: 4px !important;
}

.pig-11223-container .swiper-button-prev::before,
.pig-11223-wrapper .swiper-button-prev::before {
    transform: rotate(135deg) !important;
    margin-left: 4px !important;
}