/*
Theme Name: WikiBook Child
Theme URI: https://demo.theme-sky.com/wikibook/
Author: Theme Sky Team
Author URI: http://theme-sky.com/
Description: A Premium and Responsive WordPress theme, designed for E-Commerce websites
Template: wikibook
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: wikibook-child
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

body, h1, h2, h3, h4, h5, h6, p, a, span, button, input, select, textarea, div, li, ul, ol {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Container */
.ez-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Hide theme defaults or Elementor headers if any remain */
.site-header-legacy,
.header__mobile-bar,
.header__burger--desktop {
    display: none !important;
}

/* ============================================================================
   DESKTOP HEADER (>= 1024px)
   ========================================================================== */
.ez-header {
    width: 100%;
    background: #ffffff;
    position: relative;
    z-index: 100;
}

.ez-header__mobile {
    display: none;
}

/* 1. TOP BAR */
.ez-header__top {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 6px 0;
    font-size: 13px;
}

.ez-header__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ez-top-nav__list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ez-top-nav__list li a {
    color: #444444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.ez-top-nav__list li a:hover {
    color: #e52e2e;
}
.trp-language-item:hover {
    background: var(--bg-hover, #f3f3f3);
    text-decoration: none;
}
.ez-header__lang {
  display: flex;
    align-items: center;
    height: 10px !important;
    bottom: -5px !important;
    position: relative !important;
}
.trp-ls-dropdown.is-open .trp-switcher-dropdown-list, .trp-ls-dropdown[aria-expanded="true"] .trp-switcher-dropdown-list, .trp-shortcode-switcher.trp-open-on-hover.is-open .trp-switcher-dropdown-list, .trp-shortcode-switcher[aria-expanded="true"] .trp-switcher-dropdown-list {
    overflow-y: auto;
    max-height: min(350px, 70vh);
    background: white;
    text-decoration: none;
    border: 1px solid #80808070;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--text) transparent;
}
.ez-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333333;
    cursor: pointer;
    font-weight: 500;
}

.ez-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
}

.ez-chevron {
    width: 14px;
    height: 14px;
    color: #666;
}

/* TranslatePress language switcher custom styling override */
.trp-language-switcher, 
.trp-shortcode-switcher__wrapper {
    font-size: 13px !important;
    background: transparent !important;
}


/* 2. MIDDLE BAR */
.ez-header__middle {
    background-color: #ffffff;
    padding: 16px 0;
}

.ez-header__middle-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.ez-header__logo {
    flex: 0 0 auto;
}

.ez-header__logo a {
    display: inline-block;
}

.ez-header .ez-logo-img,
.ez-logo-img {
    height: 60px !important;
    max-height: 60px !important;
    min-height: 60px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
}

/* Search Bar */
.ez-header__search {
    flex: 1 1 auto;
    max-width: 580px;
    margin: 0 20px;
}

.ez-search-form {
    position: relative;
    width: 100%;
}

.ez-search-input {
    width: 100%;
    height: 44px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    padding: 0 46px 0 22px;
    font-size: 14px;
    color: #333333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ez-search-input::placeholder {
    color: #999999;
    font-size: 14px;
}

.ez-search-input:focus {
    border-color: #b0b0b0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.ez-search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s ease;
}

.ez-search-submit:hover {
    color: #e52e2e;
}

.ez-icon-search {
    width: 18px;
    height: 18px;
}

/* Action Icons (Profile, Wishlist Star, Shopping Bag) */
.ez-header__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 0 0 auto;
}

.ez-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    text-decoration: none;
    width: 30px;
    height: 30px;
    transition: color 0.2s ease;
}

.ez-svg-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.2s ease;
}

.ez-action-btn:hover .ez-svg-icon {
    fill: #e52e2e;
}

.ez-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #e52e2e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    height: 16px;
    min-width: 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}


/* 3. BOTTOM BAR (SOLID BLACK CATEGORY STRIP) */
.ez-header__bottom {
    background-color: #000000;
    width: 100%;
}

.ez-cat-nav {
    width: 100%;
}

.ez-cat-nav__list,
.ez-header__bottom ul.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.ez-cat-nav__list > li,
.ez-header__bottom ul.menu > li {
    position: relative;
}

.ez-cat-nav__list > li > a,
.ez-header__bottom ul.menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 48px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.ez-cat-nav__list > li:hover > a,
.ez-header__bottom ul.menu > li:hover > a,
.ez-cat-nav__list > li.current-menu-item > a,
.ez-cat-nav__list > li.current-menu-ancestor > a,
.ez-header__bottom ul.menu > li.current-menu-item > a {
    color: #e52e2e !important;
}

.ez-caret {
    font-size: 11px;
    margin-left: 2px;
}

/* Dropdown Submenus */
.ez-cat-nav__list .sub-menu,
.ez-header__bottom ul.menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111111;
    min-width: 230px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.ez-cat-nav__list li:hover > .sub-menu,
.ez-header__bottom ul.menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ez-cat-nav__list .sub-menu li a,
.ez-header__bottom ul.menu .sub-menu li a {
    display: block;
    padding: 9px 20px;
    color: #cccccc;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
    white-space: nowrap;
}

.ez-cat-nav__list .sub-menu li a:hover,
.ez-header__bottom ul.menu .sub-menu li a:hover {
    background: #222222;
    color: #ffffff;
    padding-left: 24px;
}


/* ============================================================================
   MOBILE HEADER (< 1024px)
   ========================================================================== */
@media (max-width: 1023px) {

    .ez-header__desktop {
        display: none !important;
    }

    .ez-header__mobile {
        display: block !important;
    }

    /* Sticky Bar */
    .ez-mobile-bar {
        position: sticky;
        top: 0;
        z-index: 999;
        background: #ffffff;
        height: 60px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ez-mobile-bar__left,
    .ez-mobile-bar__right {
        display: flex;
        align-items: center;
        gap: 16px;
        flex: 1 1 30%;
    }

    .ez-mobile-bar__right {
        justify-content: flex-end;
    }

    .ez-mobile-bar__center {
        flex: 1 1 40%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .ez-header .ez-mobile-logo,
    .ez-mobile-logo {
        max-height: 32px !important;
        height: 32px !important;
        width: auto !important;
        display: block !important;
        object-fit: contain !important;
    }

    /* Burger Button */
    .ez-burger-btn,
    .ez-mobile-search-btn,
    .ez-mobile-action {
        position: relative;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        color: #000000;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        text-decoration: none;
    }

    .ez-burger-btn {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }

    .ez-burger-line {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #000000;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .ez-header--mobile-open .ez-burger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .ez-header--mobile-open .ez-burger-line:nth-child(2) {
        opacity: 0;
    }
    .ez-header--mobile-open .ez-burger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .ez-mobile-icon {
        width: 24px;
        height: 24px;
    }

    /* Slide-down search */
    .ez-mobile-search-row {
        display: none;
        padding: 12px 16px;
        background: #ffffff;
        border-bottom: 1px solid #eaeaea;
    }

    .ez-header--search-open .ez-mobile-search-row {
        display: block;
    }

    /* Drawer Container */
    .ez-mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 10000;
        visibility: hidden;
        pointer-events: none;
        transition: visibility 0.3s ease;
    }

    .ez-header--mobile-open .ez-mobile-drawer {
        visibility: visible;
        pointer-events: auto;
    }

    .ez-mobile-drawer__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .ez-header--mobile-open .ez-mobile-drawer__backdrop {
        opacity: 1;
    }

    .ez-mobile-drawer__content {
        position: absolute;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 85%;
        height: 100%;
        background: #ffffff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        z-index: 2;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    /* Offset drawer when WP Admin Bar is active */
    body.admin-bar .ez-mobile-drawer__content {
        top: 32px !important;
        height: calc(100% - 32px) !important;
    }

    .ez-header--mobile-open .ez-mobile-drawer__content {
        transform: translateX(0);
    }

    /* Drawer Header & Close Button */
    .ez-mobile-drawer__header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 16px 20px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e5e5e5 !important;
        position: relative !important;
        top: 0 !important;
        z-index: 10 !important;
        flex-shrink: 0 !important;
    }

    .ez-mobile-drawer__title {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #111111 !important;
        margin: 0 !important;
    }

    .ez-mobile-drawer__close {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        background: #f2f2f2 !important;
        border: none !important;
        border-radius: 50% !important;
        font-size: 18px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        color: #333333 !important;
        padding: 0 !important;
        margin: 0 !important;
        transition: background 0.2s, color 0.2s !important;
    }

    .ez-mobile-drawer__close:hover {
        background: #e52e2e !important;
        color: #ffffff !important;
    }

    .ez-mobile-drawer__body {
        flex: 1;
        overflow-y: auto;
        padding: 10px 0 30px;
    }

    .ez-drawer-menu {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .ez-drawer-item {
        border-bottom: 1px solid #f5f5f5 !important;
        display: block !important;
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    .ez-drawer-item a {
        display: block !important;
        padding: 14px 20px !important;
        color: #111111 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .ez-drawer-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .ez-drawer-row > a {
        flex: 1 !important;
        padding: 14px 20px !important;
    }

    .ez-drawer-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 48px !important;
        height: 48px !important;
        background: transparent !important;
        border: none !important;
        font-size: 16px !important;
        color: #666666 !important;
        cursor: pointer !important;
        transition: transform 0.3s ease !important;
    }

    .ez-drawer-item.is-open > .ez-drawer-row .ez-drawer-toggle {
        transform: rotate(180deg) !important;
        color: #e52e2e !important;
    }

    /* Submenus in Drawer: Single Column Stacked */
    .ez-drawer-submenu,
    .ez-drawer-submenu ul,
    .ez-drawer-menu .sub-menu {
        display: none !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 4px 0 !important;
        background: #f8f8f8 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        float: none !important;
    }

    .ez-drawer-item.is-open > .ez-drawer-submenu,
    .ez-drawer-item.is-open > .sub-menu {
        display: block !important;
    }

    .ez-drawer-submenu li,
    .ez-drawer-menu .sub-menu li {
        display: block !important;
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .ez-drawer-submenu li a,
    .ez-drawer-menu .sub-menu li a {
        display: block !important;
        width: 100% !important;
        padding: 11px 20px 11px 32px !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        color: #444444 !important;
        text-decoration: none !important;
        white-space: normal !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid #eeeeee !important;
    }

    .ez-drawer-submenu li a:hover,
    .ez-drawer-menu .sub-menu li a:hover {
        background-color: #eeeeee !important;
        color: #e52e2e !important;
    }

    .ez-drawer-divider {
        height: 8px !important;
        background: #f5f5f5 !important;
        margin: 8px 0 !important;
    }

    .ez-drawer-actions {
        padding: 16px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        border-top: 1px solid #eee !important;
        background: #ffffff !important;
    }

    .ez-btn {
        display: block !important;
        text-align: center !important;
        padding: 12px !important;
        border-radius: 6px !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .ez-btn--account {
        background: #f0f0f0 !important;
        color: #111 !important;
    }

    .ez-btn--cart {
        background: #000000 !important;
        color: #fff !important;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .ez-mobile-drawer__content {
        top: 46px !important;
        height: calc(100% - 46px) !important;
    }
}

/* Product card wishlist star icon styling */
.button-in.wishlist a.ts-add-to-wishlist:before,
a.ts-add-to-wishlist:before {
    content: none !important;
    display: none !important;
}

.button-in.wishlist a.ts-add-to-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.button-in.wishlist a.ts-add-to-wishlist .ez-mobile-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.button-in.wishlist a.ts-add-to-wishlist:hover .ez-mobile-icon {
    fill: #e52e2e;
}

.button-in.wishlist a.ts-add-to-wishlist.added .ez-mobile-icon,
.button-in.wishlist a.ts-add-to-wishlist.added {
    color: #e52e2e;
    fill: #e52e2e;
}

/* Hide single product custom summary content and coupons */
.ts-summary-custom-content,
.ts-single-product-coupon {
    display: none !important;
}

/* Single Product SKU (Код товара) */
.ez-product-sku-row {
    font-size: 14px;
    color: #555555;
    margin: 8px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ez-sku-label {
    font-weight: 600;
    color: #222222;
}

.ez-sku-value {
    font-weight: 600;
    color: #e52e2e;
}

/* Product Gallery Thumbnails Slider & Hide Scrollbar */
.woocommerce div.product div.images .flex-control-thumbs,
.woocommerce div.product.gallery-layout-vertical div.images .flex-control-thumbs {
    overflow-y: scroll !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-right: 0 !important;
}

.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar,
.woocommerce div.product.gallery-layout-vertical div.images .flex-control-thumbs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.woocommerce div.product.gallery-layout-vertical div.images .ez-thumb-slider-wrapper {
    position: absolute;
    top: 0;
    bottom: 5px;
    left: 0;
    width: var(--thumbnails-width, 80px);
    z-index: 10;
}

.woocommerce div.product.gallery-layout-vertical div.images .ez-thumb-slider-wrapper .flex-control-thumbs {
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 0;
    right: 0;
    width: 100%;
}

.ez-thumb-nav {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 22px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.ez-thumb-prev {
    top: 0;
}

.ez-thumb-next {
    bottom: 0;
}

.ez-thumb-nav:hover:not(.ez-disabled) {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.ez-thumb-nav.ez-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.ez-thumb-nav svg {
    width: 14px;
    height: 14px;
}

/* 4 Thumbnails visible layout for vertical gallery */
.woocommerce div.product.gallery-layout-vertical div.images {
    --thumbnails-width: 68px !important;
}

.woocommerce div.product.gallery-layout-vertical div.images .ez-thumb-slider-wrapper {
    width: 68px !important;
}

.woocommerce div.product.gallery-layout-vertical div.images .flex-control-thumbs {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.woocommerce div.product.gallery-layout-vertical div.images .flex-control-thumbs li {
    width: 100% !important;
    max-width: 68px !important;
    flex: 0 0 calc((100% - 18px) / 4) !important;
    height: calc((100% - 18px) / 4) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.woocommerce div.product.gallery-layout-vertical div.images .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

/* Single Product Cart / Action Bar Styling Fixes */
.woocommerce div.product form.cart,
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
}

.woocommerce div.product form.cart .single_variation_wrap {
    width: 100% !important;
}

/* Quantity Container */
.woocommerce div.product form.cart div.quantity {
    width: 120px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    position: relative !important;
}

.woocommerce div.product form.cart div.quantity .number-button {
    width: 100% !important;
    height: 48px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 30px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.woocommerce div.product form.cart div.quantity .number-button:before,
.woocommerce div.product form.cart div.quantity .number-button:after {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    font-size: 14px !important;
    color: #333333 !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.woocommerce div.product form.cart div.quantity .number-button:before {
    left: 0 !important;
    right: auto !important;
}

.woocommerce div.product form.cart div.quantity .number-button:after {
    right: 0 !important;
    left: auto !important;
}

.woocommerce div.product form.cart div.quantity .minus,
.woocommerce div.product form.cart div.quantity .plus {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 36px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 3 !important;
    font-size: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce div.product form.cart div.quantity .minus {
    left: 0 !important;
    right: auto !important;
}

.woocommerce div.product form.cart div.quantity .plus {
    right: 0 !important;
    left: auto !important;
}

.woocommerce div.product form.cart div.quantity input.qty,
.woocommerce div.product form.cart:not(.grouped_form) div.quantity .qty:not([type="hidden"]) {
    width: 100% !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 36px !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
}

.woocommerce div.product form.cart div.quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart div.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Add to Cart Button */
.woocommerce div.product form.cart .single_add_to_cart_button {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 32px !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #111111 !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: #e52e2e !important;
    border-color: #e52e2e !important;
    color: #ffffff !important;
}

/* Wishlist & Compare Buttons */
.woocommerce div.product form.cart .button-in {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
}

.woocommerce div.product form.cart .button-in > a,
.button-in.wishlist a.ts-add-to-wishlist,
.button-in.compare a {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    line-height: 46px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 30px !important;
    background: #ffffff !important;
    color: #111111 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.woocommerce div.product form.cart .button-in > a:hover,
.button-in.wishlist a.ts-add-to-wishlist:hover,
.button-in.compare a:hover {
    border-color: #e52e2e !important;
    color: #e52e2e !important;
    background: #ffffff !important;
}

.button-in.wishlist a.ts-add-to-wishlist.added {
    border-color: #e52e2e !important;
    color: #e52e2e !important;
}

.woocommerce div.product form.cart .button-in > a .ez-mobile-icon,
.button-in.wishlist a.ts-add-to-wishlist .ez-mobile-icon {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

.woocommerce div.product form.cart .button-in > a:before,
.button-in.compare a:before {
    font-size: 18px !important;
}

/* ============================================================================
   CUSTOM FOOTER & NEW PAGES STYLING (Contacts, Delivery, Returns, Reviews)
   ========================================================================== */

/* Footer */
.ez-footer {
    background-color: #111111;
    color: #cccccc;
    padding: 50px 0 20px 0;
    margin-top: 60px;
    font-size: 14px;
}

.ez-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #222222;
}

.ez-footer-logo-img {
    height: 48px !important;
    width: auto !important;
    display: block;
    margin-bottom: 16px;
    object-fit: contain;
}

.ez-footer__desc {
    color: #999999;
    line-height: 1.6;
    margin: 0;
}

.ez-footer__title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.ez-footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #e52e2e;
}

.ez-footer__menu,
.ez-footer__info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ez-footer__menu li {
    margin-bottom: 10px;
}

.ez-footer__menu li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.ez-footer__menu li a:hover {
    color: #e52e2e;
    padding-left: 4px;
}

.ez-footer__info-list li {
    margin-bottom: 12px;
    color: #aaaaaa;
}

.ez-footer__info-list li span {
    color: #ffffff;
    font-weight: 600;
}

.ez-footer__info-list li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ez-footer__info-list li a:hover {
    color: #e52e2e;
}

.ez-footer__bottom {
    padding-top: 20px;
    text-align: center;
    color: #777777;
    font-size: 13px;
}

/* Page Common Styles */
.ez-page-main {
    padding: 40px 0 60px 0;
    background: #ffffff;
}

.ez-page-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px auto;
}

.ez-page-title {
    font-size: 32px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 12px 0;
}

.ez-page-subtitle {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* Cards Grid */
.ez-contacts-grid,
.ez-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.ez-contact-card,
.ez-info-card {
    background: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ez-contact-card:hover,
.ez-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #dddddd;
}

.ez-contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #eaeaea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e52e2e;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ez-contact-icon svg {
    width: 24px;
    height: 24px;
}

.ez-contact-card h3,
.ez-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 10px 0;
}

.ez-contact-card p,
.ez-info-card p {
    font-size: 14px;
    color: #555555;
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.ez-contact-card a {
    color: #111111;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ez-contact-card a:hover {
    color: #e52e2e;
}

.ez-info-badge {
    display: inline-block;
    background: #111111;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.ez-info-card ul {
    text-align: left;
    margin: 12px 0 0 0;
    padding-left: 20px;
    color: #555555;
    font-size: 14px;
}

.ez-info-card ul li {
    margin-bottom: 6px;
}

/* Sections */
.ez-info-section {
    margin-bottom: 50px;
}

.ez-section-heading {
    font-size: 24px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 24px 0;
    border-bottom: 2px solid #111111;
    padding-bottom: 8px;
    display: inline-block;
}

/* Form Styles */
.ez-contact-form-section {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 40px;
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid #eeeeee;
}

.ez-contact-form-wrapper h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 8px 0;
    text-align: center;
}

.ez-contact-form-wrapper p {
    text-align: center;
    color: #666666;
    margin: 0 0 28px 0;
    font-size: 14px;
}

.ez-form-row {
    display: flex;
    gap: 16px;
}

.ez-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.ez-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
}

.ez-form-group input,
.ez-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 14px;
    color: #111111;
    background: #ffffff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ez-form-group input:focus,
.ez-form-group textarea:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.ez-btn--primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}

.ez-btn--primary:hover {
    background: #e52e2e;
}

/* Returns Page Styles */
.ez-returns-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ez-returns-box {
    background: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 32px;
}

.ez-returns-box h2 {
    font-size: 20px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #e52e2e;
    padding-bottom: 8px;
    display: inline-block;
}

.ez-returns-list,
.ez-returns-steps {
    margin: 0;
    padding-left: 20px;
    color: #444444;
    font-size: 14px;
    line-height: 1.7;
}

.ez-returns-list li,
.ez-returns-steps li {
    margin-bottom: 12px;
}

/* Reviews Page Styles */
.ez-rating-summary {
    text-align: center;
    background: #f9f9f9;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    margin: 0 auto 40px auto;
    border: 1px solid #eeeeee;
}

.ez-rating-score {
    font-size: 42px;
    font-weight: 900;
    color: #111111;
    line-height: 1;
    margin-bottom: 6px;
}

.ez-rating-stars {
    color: #f39c12;
    font-size: 20px;
    margin-bottom: 8px;
}

.ez-rating-count {
    font-size: 13px;
    color: #666666;
}

.ez-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.ez-review-card {
    background: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 24px;
}

.ez-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.ez-review-author {
    font-weight: 700;
    color: #111111;
    font-size: 16px;
}

.ez-review-stars {
    color: #f39c12;
    font-size: 14px;
}

.ez-review-date {
    font-size: 12px;
    color: #888888;
    margin-bottom: 14px;
}

.ez-review-text {
    font-size: 14px;
    color: #444444;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .ez-footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .ez-returns-wrapper {
        grid-template-columns: 1fr;
    }
    .ez-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Empty Category & No Products Found Notice Box */
.woocommerce-info,
body .woocommerce-info,
.woocommerce-no-products-found,
p.woocommerce-info {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 32px 24px !important;
    text-align: center !important;
    margin: 30px 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    color: #333333 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
}

.woocommerce-info:before,
body .woocommerce-info:before {
    display: none !important;
}

/* Category & Authors Sidebar Widgets Styling */
.widget_product_categories .widget-title,
.ts-product-categories-widget .widget-title,
.widget_categories .widget-title,
.sidebar .widget-title,
.widget-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #111111 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 16px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #111111 !important;
}

.widget_product_categories ul,
.ts-product-categories-widget ul,
.widget_categories ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_product_categories ul li,
.ts-product-categories-widget ul li,
.widget_categories ul li {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    padding: 6px 0 !important;
    border-bottom: 1px dashed #eaeaea !important;
}

.widget_product_categories ul li a,
.ts-product-categories-widget ul li a,
.widget_categories ul li a {
    color: #444444 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.widget_product_categories ul li a:hover,
.ts-product-categories-widget ul li a:hover,
.widget_product_categories ul li.current-cat > a {
    color: #e52e2e !important;
}

/* Filter Sidebar & Price Filter Styling */
.widget_price_filter,
.widget_layered_nav,
.ts-product-filter-widget,
.widget_rating_filter {
    margin-bottom: 30px !important;
}

/* Price Filter Inputs & Row */
.widget_price_filter .price_slider_amount,
.price_slider_amount {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 16px !important;
}

.widget_price_filter .price_slider_amount input[type="text"],
.widget_price_filter .price_slider_amount input[type="number"],
.price_slider_amount input {
    height: 38px !important;
    line-height: 38px !important;
    border-radius: 20px !important;
    border: 1px solid #d0d0d0 !important;
    background: #ffffff !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.widget_price_filter .price_slider_amount button.button,
.widget_price_filter button.button,
.price_slider_amount .button {
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 18px !important;
    border-radius: 20px !important;
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #111111 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.widget_price_filter .price_slider_amount button.button:hover,
.widget_price_filter button.button:hover,
.price_slider_amount .button:hover {
    background: #e52e2e !important;
    border-color: #e52e2e !important;
    color: #ffffff !important;
}

/* Price Range Presets List */
.widget_price_filter ul,
.ts-price-filter-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 12px 0 0 0 !important;
}

.widget_price_filter ul li,
.ts-price-filter-list li {
    padding: 4px 0 !important;
}

.widget_price_filter ul li a,
.ts-price-filter-list li a {
    color: #444444 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.widget_price_filter ul li a:hover,
.widget_price_filter ul li.chosen a,
.ts-price-filter-list li a:hover {
    color: #e52e2e !important;
}

/* Attribute / Authors List Container & Custom Scrollbar */
.widget_layered_nav ul,
.ts-product-filter-widget ul {
    max-height: 240px !important;
    overflow-y: auto !important;
    padding-right: 6px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cccccc transparent !important;
}

.widget_layered_nav ul::-webkit-scrollbar,
.ts-product-filter-widget ul::-webkit-scrollbar {
    width: 4px !important;
}

.widget_layered_nav ul::-webkit-scrollbar-thumb,
.ts-product-filter-widget ul::-webkit-scrollbar-thumb {
    background: #cccccc !important;
    border-radius: 4px !important;
}

.widget_layered_nav ul li,
.ts-product-filter-widget ul li {
    font-size: 14px !important;
    color: #333333 !important;
    padding: 5px 0 !important;
    border-bottom: none !important;
    text-transform: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.widget_layered_nav ul li a,
.ts-product-filter-widget ul li a {
    color: #333333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.widget_layered_nav ul li a:hover,
.ts-product-filter-widget ul li a:hover,
.widget_layered_nav ul li.chosen a {
    color: #e52e2e !important;
}

.widget_layered_nav ul li .count,
.ts-product-filter-widget ul li .count {
    color: #888888 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}