/*
Theme Name: Aldstore Dropshipping
Theme URI: https://villatheme.com/aldstore-dropshipping/
Author: VillaTheme
Author URI: https://villatheme.com/
Description: Aldstore Dropshipping is a store theme for WooCommerce.
Tested up to: 6.9
Requires at least: 6.7
Requires PHP: 7.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aldstore-dropshipping
Tags: e-commerce, four-columns, wide-blocks, block-patterns, block-styles, featured-images, full-site-editing, rtl-language-support, sticky-post, template-editing, threaded-comments, translation-ready
*/

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    border-color: var(--wp--preset--color--contrast);
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
    text-decoration-color: var(--wp--preset--color--primary);
    text-decoration-thickness: 0.5px !important;
    text-underline-offset: 0.05em;
}

/* Reset browser default margins for blockquote element */
.wp-block-pullquote blockquote {
    margin: 0;
}

/* Search button inside style */
.wp-block-search__button-inside .wp-block-search__inside-wrapper {
    padding: 4px;
}

/* Adjust font size for comment reply title */
.wp-block-post-comments-form .comment-reply-title {
    font-size: var(--wp--preset--font-size--large);
}

/* Remove the bottom margin from the button */
.wp-block-post-comments-form .form-submit {
    margin-bottom: 0;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */
.wp-block-navigation__responsive-container.is-menu-open {
    padding: var(--wp--preset--spacing--50);
}

/* Adjust the top padding for the submenu items */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
    padding-top: var(--wp--preset--spacing--30);
}

/* Override the Gutenberg style to theme style */
.wp-block-post-author__byline,
.wp-block-post-author__bio {
    font-size: inherit;
}

/* Round the avatar and reset the vertical alignment */
.wp-block-post-author__avatar img {
    border-radius: 999px;
    line-height: 0;
}

/* Style tag cloud outline style  */
.wp-block-tag-cloud.is-style-outline a {
    border-color: var(--wp--preset--color--tertiary);
    border-radius: 999px;
    padding: 0 0.5rem;
}

.wp-block-tag-cloud.is-style-outline a:hover {
    color: var(--wp--preset--color--base);
    background-color: var(--wp--preset--color--primary);
}

/* Remove the default margin from author bio */
.wp-block-post-author__bio {
    margin: 0;
}

/* Remove the default margin from term description. */
.wp-block-term-description p:first-child {
    margin-top: 0;
}

.wp-block-term-description p:last-child {
    margin-bottom: 0;
}

/* Normalise font sizes for the latest comments and latest posts widgets */
.wp-block-latest-comments__comment-excerpt p,
.wp-block-latest-comments__comment-date,
.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
    font-size: inherit;
}

/* Adjust font colour in the Calendar widget */
.wp-block-calendar table:where(:not(.has-text-color)) {
    color: var(--wp--preset--color--foreground);
}

/* Fix border radius setting for the avatar block */
.wp-block-avatar a,
.wp-block-avatar img {
    border-radius: inherit;
    vertical-align: middle;
}

/* Fix line height for various fields */
.wp-block-search__input,
.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]),
.wp-block-post-comments-form .comment-form textarea {
    line-height: inherit;
}

/* Style  border colour for search and Jetpack subscription blocks */
.wp-block-search__input,
.wp-block-search__button-inside .wp-block-search__inside-wrapper,
.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form input[type="email"] {
    border-color: var(--wp--preset--color--tertiary);
}

/* Needed to style input field for various Jetpack blocks */
.wp-block-jetpack-contact-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-jetpack-contact-form select,
.wp-block-jetpack-contact-form textarea,
.wp-block-jetpack-mailchimp input:not([type="submit"]):not([type="checkbox"]),
.wp-block-jetpack-revue input:not([type="submit"]):not([type="checkbox"]) {
    background-color: #fff;
    border: 1px solid var(--wp--preset--color--tertiary);
    font-size: inherit;
    line-height: inherit;
    padding: 0.5rem;
}

.wp-block-jetpack-contact-form.contact-form label {
    font-weight: 400;
}

.wp-block-jetpack-contact-form.contact-form label span {
    opacity: 0.7;
}

.wp-block-jetpack-contact-form.contact-form select {
    padding: 0.5rem;
}

.wp-block-jetpack-contact-form.contact-form textarea {
    margin-bottom: var(--wp--preset--spacing--40);
}

/* Style the feedback you get after submitting the contact form */
div[id^="contact-form-"] h4 {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: inherit;
    line-height: 1.555555556;
}

div[id^="contact-form-"] .contact-form-submission {
    margin: 0;
    padding: 0;
}

/* Adjust vertical margins in the mailchimp block */
.wp-block-jetpack-mailchimp .wp-block-jetpack-button,
.wp-block-jetpack-mailchimp p {
    margin: var(--wp--preset--spacing--40) 0;
}

/* Adjust the size of the consent text in mailchimp block */
#wp-block-jetpack-mailchimp_consent-text {
    font-size: var(--wp--preset--font-size--small);
    margin-bottom: 0;
}

/* Remove underline from the price after discounted */
ins {
    text-decoration: none;
}

/* Fix the hardcoded wide width value in the stylesheet for TT3 */
.woocommerce.woocommerce-page main {
    max-width: calc(var(--wp--style--global--wide-size) + var(--wp--style--root--padding-right) + var(--wp--style--root--padding-left));
}

/*HEADER*/
.wp-block-woocommerce-customer-account {
    font-size: inherit;
}

.wp-block-woocommerce-customer-account a {
    padding: 0;
    display: flex;
    white-space: nowrap;
    gap: .5em;
    align-items: center;
    line-height: 1;
    text-decoration: none;
}

.wp-block-woocommerce-customer-account a::before {
    content: url("assets/images/icons/account.svg");
}

.wp-block-woocommerce-customer-account a svg {
    display: none;
}

/**/
.wc-block-mini-cart {
    font-size: inherit;
}

.wc-block-mini-cart .wc-block-mini-cart__button {
    color: var(--wp--preset--color--primary);
    background-color: #fff;
    border-radius: 30px;
    position: relative;
    padding: 5px 10px 5px 5px;
    display: flex;
    align-items: center;
    gap: .5em;
    line-height: 1;
    white-space: nowrap;
    border: none;
    font-size: inherit;
    font-family: inherit;
}

.wc-block-mini-cart .wc-block-mini-cart__quantity-badge {
    background-color: var(--wp--preset--color--primary);
    color: #fff;
    position: static;
    font-size: 0;
    padding: 7px;
    border-radius: 50%;
    align-items: center;
    display: flex;
}

.wp-block-woocommerce-cart-link .wc-block-cart-link svg,
.wc-block-mini-cart .wc-block-mini-cart__quantity-badge svg {
    display: none;
}

.wp-block-woocommerce-cart-link .wc-block-cart-link .wc-block-cart-link__text {
    align-items: center;
    gap: 5px;
    display: inline-flex;
}

.wp-block-woocommerce-cart-link .wc-block-cart-link .wc-block-cart-link__text::before {
    content: url("assets/images/icons/cart-link.svg");
    font-size: 0;
}

.wc-block-mini-cart .wc-block-mini-cart__quantity-badge::before {
    content: url("assets/images/icons/cart.svg");
}

.wc-block-mini-cart .wc-block-mini-cart__badge {
    background-color: #F7931E;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    height: 20px;
    padding: 0 2px;
    top: 5px;
    margin-left: -10px;
    position: absolute;
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 1;
    left: 100%;
    min-width: 1.4285714286em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1em;
}

/**/
.header-middle .wp-block-search .wp-block-search__input {
    height: 36px;
    padding-left: 16px;
}

.header-middle .wp-block-search .wp-block-search__button {
    padding: 6px;
}

/**/
.header-nav nav.is-vertical,
.header-nav nav.is-vertical .wp-block-navigation-submenu,
.header-nav nav.is-vertical .wp-block-navigation__container,
.header-nav nav.is-vertical .wp-block-navigation .wp-block-navigation-item {
    border-radius: 20px;
}

.header-nav nav.is-vertical .wp-block-navigation__container .wp-block-navigation__submenu-icon {
    display: none;
}

.header-nav nav.is-vertical .wp-block-navigation__container button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 265px;
    padding: 8px 20px !important;
    background-color: inherit;
    border-radius: inherit;
}

.header-nav nav.is-vertical .wp-block-navigation__container button[aria-expanded="true"] {
    border-radius: 20px 20px 0 0;
}

.header-nav nav.is-vertical .wp-block-navigation__container button::before {
    content: url("assets/images/icons/vertical-menu-bar.svg");
    line-height: 0;
}

.header-nav nav.is-vertical .wp-block-navigation__container button::after {
    content: url("assets/images/icons/vertical-menu-arrow.svg");
    line-height: 0;
}

.header-nav nav.is-vertical .wp-block-navigation__submenu-container {
    width: 100% !important;
    border-radius: 0 0 20px 20px;
}

.mobile-menu {
    top: 0;
    left: 0;
    bottom: 0;
    width: 440px;
    max-width: 100%;
    z-index: 10000;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

header .mobile-menu {
    position: fixed !important;
    transform: translateX(-440px);
    opacity: 0;
    visibility: hidden;
    display: none;
}

.admin-bar header .mobile-menu {
    top: 30px;
}

.mobile-menu .mobile-menu-nav {
    height: calc(100% - 180px);
    overflow-y: auto;
}

.mobile-menu .wp-block-navigation .wp-block-navigation-item {
    flex-wrap: wrap;
}

.mobile-menu .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    border: none;
    height: auto;
    width: 100% !important;
    position: static;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 2px;
}

.header-middle .mobile-menu-btn {
    display: none;
}

/**/
@media (max-width: 1024px) {
    .header-middle .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .header-middle .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 100% !important;
    }

    .header-middle .wp-block-column:last-child {
        display: none;
    }

    .header-middle .mobile-menu-btn {
        display: block;
    }

    .header-nav {
        display: none;
    }

    header .mobile-menu.open {
        transform: translateX(0px);
        box-shadow: -3px 0 21px rgba(63, 63, 63, 0.15);
        opacity: 1;
        visibility: visible;
        display: block;
    }
}

/**/
.wc-block-product {
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/**/
.wc-block-product .yith-add-to-wishlist-button-block {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    display: flex;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    color: #000;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateX(60px);
    -moz-transform: translateX(60px);
    -ms-transform: translateX(60px);
    -o-transform: translateX(60px);
    transform: translateX(60px);
    -webkit-transition: all 0.25s ease 0s;
    -moz-transition: all 0.25s ease 0s;
    -o-transition: all 0.25s ease 0s;
    transition: all 0.25s ease 0s;
}

.wc-block-product:hover .yith-add-to-wishlist-button-block {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
}

.wc-block-product .yith-add-to-wishlist-button-block a {
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 1 !important;
    background-color: transparent;
    border-radius: inherit;
    color: inherit;
    height: inherit;
    line-height: inherit;
    text-decoration: none;
}

.wc-block-product .yith-add-to-wishlist-button-block a .yith-wcwl-add-to-wishlist-button__label,
.wc-block-product .yith-add-to-wishlist-button-block a svg {
    display: none !important;
}

.wc-block-product .yith-add-to-wishlist-button-block a::before {
    content: url("assets/images/icons/wishlist.svg");
}

.wc-block-product .yith-add-to-wishlist-button-block a.yith-wcwl-add-to-wishlist-button--added::before {
    content: url("assets/images/icons/wishlist-added.svg");
}

/**/
.wc-block-product .yith-wcqv-button {
    position: absolute;
    top: 70px;
    right: 20px;
    font-size: 0;
    vertical-align: top;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    display: flex;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #FFF9 !important;
    backdrop-filter: blur(10px);
    color: #000;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateX(60px);
    -moz-transform: translateX(60px);
    -ms-transform: translateX(60px);
    -o-transform: translateX(60px);
    transform: translateX(60px);
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}

.wc-block-product:hover .yith-wcqv-button {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
}

.wc-block-product .yith-wcqv-button::before {
    content: url("assets/images/icons/quickview.svg");
}

.yith-quick-view-content.woocommerce div.product tr.product {
    height: auto;
}

@media (max-width: 1024px) {
    .wc-block-product .yith-add-to-wishlist-button-block,
    .wc-block-product .yith-wcqv-button {
        opacity: 1;
        visibility: visible;
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }
}

/**/
.wc-block-product .wp-block-post-terms {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wc-block-product .wp-block-post-title a {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wc-block-product .wp-block-button.wc-block-components-product-button {
    position: relative;
}

.wc-block-product .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
    font-size: 0;
}

.wc-block-product .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button::before {
    content: url("assets/images/icons/cart.svg");
}

.wc-block-product .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button span {
    display: none;
}

.wc-block-product .wp-block-button.wc-block-components-product-button span[data-wp-bind--hidden="!state.displayViewCart"] {
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 0;
    border-radius: 30px;
    background-color: var(--wp--preset--color--primary);
}

.wc-block-product .wp-block-button.wc-block-components-product-button a.added_to_cart {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-block-product .wp-block-button.wc-block-components-product-button a.added_to_cart::before {
    content: url("assets/images/icons/cart-check.svg");
}

/**/
.clone-product-template__responsive {
    grid-gap: 1.25em;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(150px, calc(16.66667% - 1.04167em)), 1fr));
    margin-bottom: 30px;
}

.clone-product-template__responsive .clone-block-product {
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.clone-product-template__responsive .clone-block-product .clone-block-product-image {
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: .75rem;
}

.clone-product-template__responsive .clone-block-product .clone-block-product-image img {
    max-width: 100%;
    vertical-align: top;
}

.clone-product-template__responsive .clone-block-product .clone-block-product-category {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clone-product-template__responsive .clone-block-product .clone-block-product-name {
    font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.25), 18px);
    font-weight: 500;
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clone-product-template__responsive .clone-block-product .clone-block-product-price-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px;
    background-color: #f5f5f5;
    padding-left: 10px;
}

.clone-product-template__responsive .clone-block-product .clone-block-product-price {
    color: #DD2831;
    font-weight: 500;
}

.clone-product-template__responsive .clone-block-product .clone-block-product-add-to-cart {
    padding: 9px;
    border-radius: 50%;
    display: inline-block;
    background-color: var(--wp--preset--color--primary);
    font-size: 0;
}

.clone-product-template__responsive .clone-block-product .clone-block-product-add-to-cart::before {
    content: url("assets/images/icons/cart.svg");
}