/*!
 * Dogs Nanny - front-end styles
 *
 * Loaded by src/Assets/Assets.php at wp_enqueue_scripts priority 100, so it
 * lands after the Salient parent/child theme CSS: many rules below win on
 * source order as much as on specificity.
 *
 * Sections roughly mirror the src/ domains:
 *   3, 4  -> src/Catalog, src/Pricing
 *   5     -> src/Cart
 *   9     -> src/Shipping
 */

/* ==========================================================================
   1. Layout / Page structure
   ========================================================================== */

.container-wrap {
    padding-top: 0 !important;
}

.woocommerce-tabs {
    padding: 0 !important;
}

.page-title,
.woocommerce-breadcrumb {
    line-height: 1 !important;
    margin: 16px 0 !important;
}

.single-product .images .product-slider {
    margin: 0 !important;
}

.row .col.section-title {
    border-bottom: unset !important;
}

.nectar-shop-header-bottom {
    margin: 16px 0 !important;
}

/* ==========================================================================
   2. Header / Navigation
   ========================================================================== */

#header-secondary-outer .nectar-center-text {
    opacity: 0;
}

#header-secondary-outer .nectar-center-text.visible {
    opacity: 1;
}

#header-outer #social-in-menu i.fa-facebook {
    width: auto !important;
}

.nectar-megamenu-menu-item .sub-menu .sub-menu .menu-item-has-children>.sub-menu>.menu-item>a {
    padding-left: 18px !important;
}

.nectar-megamenu-menu-item .sub-menu .sub-menu .menu-item-has-children>.menu-item-link-row {
    position: relative;
    display: flex;
    align-items: center;
}

.nectar-megamenu-menu-item .sub-menu .sub-menu .menu-item-has-children>.menu-item-link-row>.sub-menu-toggle {
    font-family: 'FontAwesome';
    font-size: 22px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    transition: transform 0.25s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.nectar-megamenu-menu-item .sub-menu .sub-menu .menu-item-has-children.is-hidden>.menu-item-link-row>.sub-menu-toggle {
    transform: translateY(-50%) rotate(0deg);
}

/* ==========================================================================
   3. Product grid / loop cards
   ========================================================================== */

/* Выравниваем сетку по высоте на всех экранах (включая мобильные) */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

.woocommerce ul.products li.product.minimal {
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce ul.products li.product.minimal .product-wrap {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
}

.woocommerce ul.products li.product.minimal .product-meta {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
    padding: 25px 5px !important;
}

.woocommerce ul.products li.product.minimal .product-main-meta {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
}

/* Прижимаем цену к низу карточки; отступ сверху на случай 2-3-строчного заголовка */
.woocommerce ul.products li.product.minimal .product-main-meta .price {
    margin-top: auto !important;
    margin-bottom: 16px !important;
    padding-top: 16px !important;
}

.product_title,
li.product.minimal .woocommerce-loop-product__title {
    margin: 0 !important;
    padding: 0 !important;
}

/* Theme's `.products li.product.minimal .product-meta .amount` rule (font-weight: 700)
   targets the .amount span directly, including the one nested inside <del>, so it beats
   a plain `del { font-weight: 500 }` rule via inheritance. Override it at the same target. */
.woocommerce ul.products li.product.minimal .product-meta .price del .amount {
    font-weight: 500 !important;
}

.woocommerce .products .product.outofstock {
    opacity: 0.25;
}

/* Onsale badge (grid cards + single product) */
.onsale-wrapper {
    background-image: url('/wp-content/uploads/2026/03/paw.png');
    background-size: cover;
    position: absolute;
    z-index: 100;
    width: 96px;
    height: 96px;
}

.onsale-wrapper span {
    position: absolute;
    width: 100%;
    top: 60%;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
}

.products .product .onsale-wrapper {
    right: 16px;
    top: 16px;
}

.product .onsale-wrapper {
    right: 86px;
    top: 16px;
}

/* ==========================================================================
   4. Single product page
   ========================================================================== */

.woocommerce-product-rating,
.price {
    margin: 16px 0 !important;
    padding: 0 !important;
}

.woocommerce .variations,
.woocommerce div.product form.cart .variations {
    margin-bottom: 16px !important;
}

.product .price del {
    font-size: 16px !important;
    line-height: 24px !important;
}

.reset_variations {
    display: none;
}

.hoolt-member-badge {
    display: table;
    background: #9bc264;
    color: #ffffff !important;
    font-weight: 500;
    font-size: 12px;
    line-height: 12px;
    padding: 8px;
    border-radius: 999px;
    margin-bottom: 16px;
    text-decoration: none;
}

.hoolt-member-badge:hover,
.hoolt-member-badge:focus {
    color: #fff !important;
    text-decoration: none;
}

.hoolt-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
}

.woocommerce-Price-amount.amount {
    font-weight: 700 !important;
}

/* .woocommerce-Price-amount.amount above targets the amount span directly, not
   inherited, so a plain `del`/`ins` font-weight rule never actually reaches the
   visible text (it's always inside .amount). Override the amount span itself,
   scoped globally so it also covers mini-cart/cart/checkout, not just this page. */
del .woocommerce-Price-amount.amount {
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 16px !important;
}

/* Theme sets font-size: 24px !important directly on bdi, which beats the
   font-size set on .amount above via inheritance for the same reason the
   font-weight overrides above needed a direct target. Override bdi itself. */
del .woocommerce-Price-amount.amount bdi {
    font-size: 16px !important;
    line-height: 16px !important;
}

.woocommerce-variation-price {
    display: none !important;
}

.product_meta {
    display: none !important;
}

.stock {
    display: none;
}

.summary {
    margin: 0 !important;
}

.cart {
    margin: 32px 0 !important;
}

.single-product-main-image {
    margin-bottom: 16px !important;
}

.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* ==========================================================================
   5. Cart / Mini-cart
   ========================================================================== */

.nectar-slide-in-cart.style_slide_in_click .widget_shopping_cart .cart_list li a.remove.with_text {
    font-family: Work Sans !important;
}

.nectar-slide-in-cart.style_slide_in_click .inner > .header {
    top: 16px !important;
    left: 16px !important;
    width: calc(100% - 32px) !important;
    padding-bottom: 16px !important;
}

/* Theme's span.quantity (qty stepper + price column, flex-direction: column-reverse,
   stretched to the thumbnail's height) has no justify-content, so with a reversed
   axis its content sits at the bottom instead of centered. `.quantity` alone would
   also match the unrelated div.quantity qty stepper, so scope to the span. */
.woocommerce-mini-cart-item span.quantity {
    justify-content: center !important;
}

.widget_shopping_cart_content {
    padding: 16px !important;
}

.widget_shopping_cart_content .woocommerce-Price-currencySymbol {
    font-size: 16px !important;
}

.woocommerce-mini-cart__total.total {
    padding: 16px 0 !important;
    margin: 0 !important;
}

/* Hide "go to cart" mini-cart button, keep "checkout" button visible */
.nectar-inactive a.button.wc-forward:not(.checkout),
.woocommerce-mini-cart__buttons.buttons a.button.wc-forward:not(.checkout) {
    display: none !important;
}

.woocommerce-mini-cart__buttons.buttons {
    padding-top: 16px !important;
    margin-top: 0 !important;
}

.nectar-inactive a.button.checkout.wc-forward,
.woocommerce-mini-cart__buttons.buttons a.button.checkout.wc-forward {
    width: 100% !important;
    margin: 0 !important;
}

/* ==========================================================================
   6. Filters / Layered nav widget
   ========================================================================== */

.widget_layered_nav input {
    border: unset !important;
    border-radius: unset !important;
    border-bottom: 2px #000000 solid !important;
    padding: unset !important;
    padding-bottom: 2px !important;
    box-shadow: unset !important;
    color: #000000 !important;
    margin-bottom: 11px !important;
}

.woocommerce-widget-layered-nav h4,
.widget_layered_nav input,
.widget_layered_nav input::placeholder {
    font-weight: 500 !important;
    opacity: 1 !important;
    color: #000000 !important;
}

.widget_layered_nav ul {
    max-height: 600px !important;
    overflow-y: auto !important;
}

/* ==========================================================================
   6b. Checkout / Cart blocks
   ========================================================================== */

.wc-block-components-radio-control__secondary-label em {
    font-family: Work Sans;
}

/* ==========================================================================
   7. Misc
   ========================================================================== */

.before-footer .nectar-button-type {
    text-transform: unset !important;
}

.woocommerce-result-count {
    display: none !important;
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */

@media only screen and (max-width: 999px) {
    #header-secondary-outer #social {
        display: none;
    }

    .onsale-wrapper {
        width: 64px;
        height: 64px;
    }

    .onsale-wrapper span {
        top: 55%;
        font-size: 14px;
    }

    .product .onsale-wrapper {
        right: 16px;
        top: 16px;
    }

    .woocommerce-widget-layered-nav h4:after,
    .woocommerce-widget-layered-nav h4:before {
        content: unset !important;
    }

    .woocommerce-widget-layered-nav h4 {
        padding-left: unset !important;
    }

    .widget_layered_nav input {
        margin-bottom: 5px !important;
    }

    .widget_layered_nav ul,
    .woocommerce-widget-layered-nav ul {
        padding-left: unset !important;
    }
}

/* ==========================================================================
   9. Delivery info / Free shipping bar
   ========================================================================== */

.product-delivery-info {
    margin: 16px 0;
    font-size: 16px;
}

.product-delivery-info p {
    padding: 0 !important;
}

.free-shipping-bar__text {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px;
    text-align: center;
}

.free-shipping-bar__track {
    height: 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 16px 0;
}

.free-shipping-bar__fill {
    height: 100%;
    background: #000000;
    transition: width 0.3s ease;
}

.free-shipping-bar__fill--complete {
    background: #9bc264;
}

@media (max-width: 768px) {
    .woocommerce-breadcrumb {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        /* Плавный скролл на iOS */
    }

    /* Прячем уродливый дефолтный скроллбар (опционально) */
    .woocommerce-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .woocommerce-breadcrumb i {
        line-height: 1 !important;
        top: 0 !important;
        margin: 0 8px !important;
    }

    .single-product .price ins .woocommerce-Price-amount.amount,
    .single-product .price ins .woocommerce-Price-amount.amount bdi {
        font-size: 24px !important;
        line-height: 24px !important;
    }
}

@media (min-width: 769px) {
    .single-product .hoolt-member-badge {
        font-size: 18px;
        line-height: 18px;
    }
}
