/*
Theme Name: MegaPets Child
Description: MegaPets 2.0 Child Theme for Astra.
Author: MegaPets.eu
Template: astra
Version: 1.0.0
Text Domain: megapets-child
*/


/* ==========================================================================
   SHARED INTERACTION FEEDBACK
   ========================================================================== */

/*
 * Shared interaction baseline for custom MegaPets controls.
 *
 * - Removes the native blue mobile tap overlay.
 * - Prevents accidental text selection on controls.
 * - Hides focus outlines created by pointer interaction.
 * - Preserves a branded focus indicator for keyboard navigation.
 *
 * Content text remains selectable. Component CSS may refine the focus
 * indicator when the component's own shape requires it.
 */

.mp-premium-arrow-trigger,
.mp-site-header a,
.mp-site-header button,
.mp-trust-center a,
.mp-trust-center button,
.mp-trust-center summary,
.product-card a,
.product-card button {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.mp-site-header :focus:not(:focus-visible),
.mp-trust-center :focus:not(:focus-visible),
.product-card :focus:not(:focus-visible) {
    outline: 0;
}

.mp-site-header :focus-visible,
.mp-trust-center :focus-visible,
.product-card :focus-visible {
    outline:
        var(--mp-border-width)
        solid
        var(--mp-color-gold);
    outline-offset: 3px;
    border-radius: var(--mp-radius-small);
}


/* ==========================================================================
   SHARED CAROUSEL INDICATORS
   ========================================================================== */

/*
 * Reusable visual controls for MegaPets carousels.
 *
 * The base indicator is a dot. The video modifier changes only its shape
 * to a triangle. Components remain responsible for placement, visibility
 * and carousel behavior; no shared JavaScript is required.
 */

.mp-carousel-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--mp-carousel-media-dots-indicators-gap);
}

.mp-carousel-indicators .mp-carousel-indicator-control,
.mp-carousel-indicators .mp-carousel-indicator-control:hover,
.mp-carousel-indicators .mp-carousel-indicator-control:focus,
.mp-carousel-indicators .mp-carousel-indicator-control:focus-visible,
.mp-carousel-indicators .mp-carousel-indicator-control:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--mp-carousel-media-dots-indicators-control-width);
    min-width: 0;
    height: var(--mp-carousel-media-dots-indicators-control-height);
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mp-carousel-indicator {
    display: block;
    width: var(--mp-carousel-media-dots-indicators-size);
    height: var(--mp-carousel-media-dots-indicators-size);
    border-radius: var(--mp-radius-pill);
    background: var(--mp-carousel-media-dots-indicators-color);
    pointer-events: none;
    transition: background-color var(--mp-duration-fast) ease;
}

.mp-carousel-indicator-control:hover
    .mp-carousel-indicator:not(.mp-carousel-indicator--video),
.mp-carousel-indicator-control:focus-visible
    .mp-carousel-indicator:not(.mp-carousel-indicator--video) {
    background: var(--mp-carousel-media-dots-indicators-hover-color);
}

.mp-carousel-indicator-control.is-active
    .mp-carousel-indicator:not(.mp-carousel-indicator--video) {
    background: var(--mp-carousel-media-dots-indicators-active-color);
}

.mp-carousel-indicator--video {
    width: 0;
    height: 0;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    border-top:
        var(--mp-carousel-media-dots-indicators-video-height)
        solid
        transparent;
    border-right: 0;
    border-bottom:
        var(--mp-carousel-media-dots-indicators-video-height)
        solid
        transparent;
    border-left:
        var(--mp-carousel-media-dots-indicators-video-width)
        solid
        var(--mp-carousel-media-dots-indicators-color);
    background: transparent;
    box-shadow: none;
    transform: translateX(1px);
    transition: border-left-color var(--mp-duration-fast) ease;
}

.mp-carousel-indicator-control:hover .mp-carousel-indicator--video,
.mp-carousel-indicator-control:focus-visible .mp-carousel-indicator--video {
    border-left-color: var(--mp-carousel-media-dots-indicators-hover-color);
}

.mp-carousel-indicator-control.is-active .mp-carousel-indicator--video {
    background: transparent;
    border-left-color: var(--mp-carousel-media-dots-indicators-active-color);
}


/* ==========================================================================
   SHARED PREMIUM ARROW — STANDARD
   ========================================================================== */

/*
 * Reusable MegaPets navigation arrow.
 *
 * The tapered Cormorant Garamond glyph creates the approved visual volume.
 * The arrow inherits the current color from its component context.
 * A shared optical offset compensates for the glyph's font metrics.
 *
 * The wrapper always remains stationary and controls only layout
 * and direction. The glyph inside ::before performs the visual movement.
 * This prevents vertical movement and keeps parent dimensions unchanged.
 *
 * Components control color, glyph size, spacing and optional direction.
 */

.mp-premium-arrow-standard {
    --mp-premium-arrow-standard-rotation: 0deg;

    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    color: inherit;
    font-family: var(--mp-premium-arrow-standard-font-family);
    font-size: inherit;
    font-style: normal;
    font-weight: var(--mp-premium-arrow-standard-font-weight);
    line-height: 1;
    opacity: var(--mp-premium-arrow-standard-opacity);
    pointer-events: none;
    transform:
        rotate(var(--mp-premium-arrow-standard-rotation));
    transform-origin: center;
    transition:
        color
            var(--mp-premium-arrow-standard-motion-duration)
            var(--mp-premium-arrow-standard-motion-easing),
        opacity
            var(--mp-premium-arrow-standard-motion-duration)
            var(--mp-premium-arrow-standard-motion-easing);
}

.mp-premium-arrow-standard::before {
    content: var(--mp-premium-arrow-standard-symbol);
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    font-size:
        var(
            --mp-premium-arrow-standard-glyph-size,
            1.75em
        );
    line-height: 1;
    transform:
        translate(-50%, -50%)
        translateY(
            var(--mp-premium-arrow-standard-optical-offset-y)
        )
        translateX(0);
    transition:
        transform
            var(--mp-premium-arrow-standard-motion-duration)
            var(--mp-premium-arrow-standard-motion-easing);
}

.mp-premium-arrow-trigger:hover .mp-premium-arrow-standard,
.mp-premium-arrow-trigger:focus-visible .mp-premium-arrow-standard,
.mp-premium-arrow-trigger:active .mp-premium-arrow-standard,
.mp-premium-arrow-trigger.is-pressed .mp-premium-arrow-standard {
    opacity: 1;
}

.mp-premium-arrow-trigger:hover .mp-premium-arrow-standard::before,
.mp-premium-arrow-trigger:focus-visible .mp-premium-arrow-standard::before,
.mp-premium-arrow-trigger:active .mp-premium-arrow-standard::before,
.mp-premium-arrow-trigger.is-pressed .mp-premium-arrow-standard::before {
    transform:
        translate(-50%, -50%)
        translateY(
            var(--mp-premium-arrow-standard-optical-offset-y)
        )
        translateX(
            var(--mp-premium-arrow-standard-motion-distance)
        );
}

.mp-premium-arrow-standard--left {
    --mp-premium-arrow-standard-rotation: 180deg;
}

.mp-premium-arrow-standard--down {
    --mp-premium-arrow-standard-rotation: 90deg;
}

.mp-premium-arrow-standard--up {
    --mp-premium-arrow-standard-rotation: -90deg;
}


/* ==========================================================================
   SHARED PREMIUM SCROLLBAR
   ========================================================================== */

/*
 * Native scrollbar behavior remains primary for reliable dragging and for the
 * familiar desktop arrow buttons supplied by the platform. The WebKit rules
 * below are a fallback for browsers that do not apply the standard properties.
 */

.mp-premium-scrollbar {
    scrollbar-width: thin;
    scrollbar-color:
        var(--mp-scrollbar-thumb-color)
        var(--mp-scrollbar-track-color);
}

.mp-premium-scrollbar:hover,
.mp-premium-scrollbar:focus,
.mp-premium-scrollbar:focus-within {
    scrollbar-color:
        var(--mp-scrollbar-thumb-hover-color)
        var(--mp-scrollbar-track-color);
}

.mp-premium-scrollbar::-webkit-scrollbar {
    width: var(--mp-scrollbar-size);
    height: var(--mp-scrollbar-size);
}

.mp-premium-scrollbar::-webkit-scrollbar-track {
    background: var(--mp-scrollbar-track-color);
}

.mp-premium-scrollbar::-webkit-scrollbar-thumb {
    border: 0;
    border-radius: var(--mp-radius-pill);
    background: var(--mp-scrollbar-thumb-color);
    box-shadow: none;
    filter: none;
}

.mp-premium-scrollbar:hover::-webkit-scrollbar-thumb,
.mp-premium-scrollbar:focus::-webkit-scrollbar-thumb,
.mp-premium-scrollbar:focus-within::-webkit-scrollbar-thumb {
    background: var(--mp-scrollbar-thumb-hover-color);
    box-shadow: none;
    filter: none;
}

.mp-premium-scrollbar::-webkit-scrollbar-thumb:active {
    background: var(--mp-scrollbar-thumb-active-color);
    box-shadow: none;
    filter: none;
}

.mp-premium-scrollbar::-webkit-scrollbar-corner {
    background: transparent;
}