/**
 * Product Gallery Navigation Arrows
 * Styled to match the hero slider arrows
 */

/* WooCommerce Product Gallery - FlexSlider Navigation */
.woocommerce-product-gallery .flex-direction-nav a,
.woocommerce-product-gallery .flex-control-nav a {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: #99c3b9 !important;
    color: #394a78 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    font-weight: 300 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    text-indent: 0 !important;
    opacity: 1 !important;
}

/* Previous arrow positioning */
.woocommerce-product-gallery .flex-direction-nav .flex-prev {
    left: 0 !important;
    margin-left: -25px !important;
    justify-content: flex-end !important;
    padding-right: 8px !important;
}

/* Next arrow positioning */
.woocommerce-product-gallery .flex-direction-nav .flex-next {
    right: 0 !important;
    margin-right: -25px !important;
    justify-content: flex-start !important;
    padding-left: 8px !important;
}

/* Arrow symbols */
.woocommerce-product-gallery .flex-direction-nav .flex-prev::before {
    content: "‹" !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    transform: translateY(-2px) !important;
    display: block !important;
}

.woocommerce-product-gallery .flex-direction-nav .flex-next::before {
    content: "›" !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    transform: translateY(-2px) !important;
    display: block !important;
}

/* Hover effects */
.woocommerce-product-gallery .flex-direction-nav a:hover {
    background-color: #db5526 !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
    opacity: 1 !important;
}

/* Focus styles for accessibility */
.woocommerce-product-gallery .flex-direction-nav a:focus {
    outline: 2px solid #99c3b9 !important;
    outline-offset: 2px !important;
}

/* WooCommerce Blocks product gallery - Correct selectors */
.wc-block-next-previous-buttons__button {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: #99c3b9 !important;
    color: #394a78 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(calc(-50% + 5px)) !important;
    z-index: 22 !important;
}

/* Position the previous (left) button */
.wc-block-next-previous-buttons__button:first-child {
    left: 0 !important;
    margin-left: -25px !important;
}

/* Position the next (right) button */
.wc-block-next-previous-buttons__button:last-child {
    right: 0 !important;
    margin-right: -25px !important;
}

/* Override disabled cursor */
.wc-block-next-previous-buttons__button[aria-disabled="false"] {
    cursor: pointer !important;
}

.wc-block-next-previous-buttons__button[aria-disabled="true"] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Left button icon adjustment */
.wc-block-next-previous-buttons__button:first-child .wc-block-next-previous-buttons__icon {
    margin-left: 10px !important;
}

/* Right button icon adjustment */
.wc-block-next-previous-buttons__button:last-child .wc-block-next-previous-buttons__icon {
    margin-right: 10px !important;
}

.wc-block-next-previous-buttons__button:hover {
    background-color: #db5526 !important;
    color: #ffffff !important;
    transform: translateY(calc(-50% + 5px)) scale(1.1) !important;
}

.wc-block-next-previous-buttons__button:focus {
    outline: 2px solid #99c3b9 !important;
    outline-offset: 2px !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .woocommerce-product-gallery .flex-direction-nav a,
    .wc-block-next-previous-buttons__button {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
    }
    
    .woocommerce-product-gallery .flex-direction-nav .flex-prev {
        margin-left: -20px !important;
    }
    
    .woocommerce-product-gallery .flex-direction-nav .flex-next {
        margin-right: -20px !important;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .woocommerce-product-gallery .flex-direction-nav a,
    .wc-block-next-previous-buttons__button {
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .woocommerce-product-gallery .flex-direction-nav a,
    .wc-block-next-previous-buttons__button {
        background: #99c3b9 !important;
        border: 2px solid #394a78 !important;
    }
}

