/*!
Theme Name: Flytronics
Theme URI: https://flytronics.com
Author: Flytronics Team
Author URI: https://flytronics.com
Description: A modern, high-performance FSE block theme for Flytronics, a drone and drone parts e-commerce store. Built with Full Site Editing capabilities, accessibility, and optimal performance in mind.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flytronics
Domain Path: /languages
Tags: e-commerce, block-theme, full-site-editing, accessibility-ready, custom-colors, custom-menu, editor-style, featured-images, flexible-header, rtl-language-support, threaded-comments, translation-ready, wide-blocks
*/

/*
 * 1-. Resets and Theme Properties
*/

/*
 * Avoid box-sizing issues by setting a global rule.
*/
*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
    text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
    display: block;
}

/*
 * Consistent padding for responsive navigation icon buttons.
*/
.wp-block-navigation .wp-block-navigation__responsive-container-open,
.wp-block-navigation .wp-block-navigation__responsive-container-close {
    padding: 0.5em;
}

/*
 * Remove top margin for WooCommerce pages.
*/
.woocommerce .product {
    margin-top: 0px;
}

/*
 * Adjust WooCommerce product price slider input to fit accordingly.
*/
.wc-block-product-filter-price-slider .text input[type="text"] {
    max-width: 80px;
    text-align: right;
}
