/* ===== ALENSA-STYLE THEME v2 ===== */

/* Header */
.site-header {
    background: linear-gradient(135deg, #1a3a4a 0%, #2d5a6a 100%) !important;
    padding: 15px 0;
}
.site-title a, .site-description {
    color: #fff !important;
    font-weight: 700;
    font-size: 28px;
}
.main-navigation a {
    color: #fff !important;
    font-weight: 500;
}
.main-navigation a:hover {
    color: #00e5cc !important;
}

/* Search box */
.site-search input {
    border-radius: 25px;
    border: 2px solid #00e5cc;
}

/* Price - pink color */
.price, .woocommerce-Price-amount {
    color: #e91e63 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}
.price ins {
    text-decoration: none !important;
}

/* Product Cards */
ul.products li.product {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #00e5cc;
}

/* Product Images */
ul.products li.product img {
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Product Title */
.woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #2d4654 !important;
    line-height: 1.4 !important;
}

/* Buttons */
.button, 
button:not(.components-button), 
input[type=submit],
.added_to_cart,
a.button {
    background: linear-gradient(135deg, #00e5cc 0%, #00bfa5 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 12px 25px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
}
.button:hover,
button:not(.components-button):hover,
input[type=submit]:hover,
a.button:hover {
    background: linear-gradient(135deg, #00bfa5 0%, #009688 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,191,165,0.4);
}

/* Variation dropdowns */
.variations select {
    border: 2px solid #2d4654 !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    min-width: 150px;
}
.variations select:focus {
    border-color: #00e5cc !important;
    outline: none;
}
.variations td.label label {
    font-weight: 700 !important;
    color: #2d4654 !important;
}

/* Add to cart button on single product */
.single_add_to_cart_button {
    font-size: 18px !important;
    padding: 15px 40px !important;
}

/* Sidebar widgets */
.widget-area .widget {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.widget-area .widget-title {
    color: #2d4654;
    font-weight: 700;
    border-bottom: 2px solid #00e5cc;
    padding-bottom: 10px;
}

/* Pagination */
.woocommerce-pagination a,
.woocommerce-pagination span {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    display: inline-block !important;
    text-align: center;
}
.woocommerce-pagination .current {
    background: #00bfa5 !important;
    color: #fff !important;
}

/* Footer */
.site-footer {
    background: #1a3a4a !important;
    color: #fff;
}

/* Breadcrumbs */
.woocommerce-breadcrumb a {
    color: #00bfa5;
}

/* Stock badge */
.stock.in-stock {
    color: #00c853 !important;
    font-weight: 600;
}

/* Fix vertical text issue */
ul.products li.product {
    width: auto !important;
    min-width: 200px !important;
    max-width: 100% !important;
}
ul.products li.product a {
    display: block !important;
}
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}
.woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
}
.woocommerce ul.products li.product {
    flex: 0 0 30% !important;
    margin: 1.5% !important;
}
@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        flex: 0 0 46% !important;
    }
}

/* Cart dropdown buttons - more contrast */
.widget_shopping_cart .buttons a,
.woocommerce-mini-cart__buttons a {
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}
.widget_shopping_cart .buttons a.checkout,
.woocommerce-mini-cart__buttons a.checkout,
a.button.checkout {
    background: #e91e63 !important;
    color: #fff !important;
}
.widget_shopping_cart .buttons a.button:not(.checkout),
a.button.wc-forward:not(.checkout) {
    background: #2d4654 !important;
    color: #fff !important;
}

/* 1 item text */
.site-header-cart .cart-contents .count,
.cart-contents .amount {
    color: #fff !important;
}

/* Brand cards on homepage */
.brand-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    border-color: #00e5cc !important;
}
.brand-card:hover span:first-child {
    color: #00bfa5;
}

/* Homepage title */
.home .entry-title {
    display: none;
}

/* Brands grid on homepage */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
@media (min-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.brand-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    text-decoration: none;
    color: #2d4654;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #00e5cc;
}
.brand-item:hover .brand-name {
    color: #00bfa5;
}
.brand-name {
    font-size: 17px;
    font-weight: 700;
}
.brand-count {
    color: #999;
    font-size: 14px;
}
.home .entry-title {
    display: none;
}

/* Brands grid with logos */
.brands-grid-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
@media (max-width: 768px) {
    .brands-grid-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}
.brand-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 80px;
}
.brand-logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #00e5cc;
}
.brand-logo-text {
    font-size: 18px;
    text-align: center;
}

/* ===== HEADER MENU DESIGN ===== */

/* Main navigation styling */
.main-navigation ul.menu {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.main-navigation ul.menu > li > a {
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

/* Normal menu items */
.main-navigation ul.menu > li:not(.menu-item-cart) > a {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

.main-navigation ul.menu > li:not(.menu-item-cart) > a:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: translateY(-2px) !important;
}

/* Active/current menu item */
.main-navigation ul.menu > li.current-menu-item > a,
.main-navigation ul.menu > li.current_page_item > a {
    background: #fff !important;
    color: #00a99d !important;
}

/* Cart button - special styling */
.site-header-cart {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.site-header-cart .cart-contents {
    background: linear-gradient(135deg, #00c9b7 0%, #00b8a7 100%) !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 184, 167, 0.4) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.site-header-cart .cart-contents:hover {
    background: linear-gradient(135deg, #00d4c1 0%, #00c4b3 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 184, 167, 0.5) !important;
}

.site-header-cart .cart-contents .woocommerce-Price-amount {
    font-weight: 700 !important;
}

.site-header-cart .cart-contents .count {
    background: #fff !important;
    color: #00a99d !important;
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-left: 5px !important;
}

/* Header container - position relative for cart */
.site-header .col-full {
    position: relative !important;
}

/* Hide cart from main menu if duplicated */
.main-navigation .menu-item-type-cart {
    display: none !important;
}

/* Search box styling */
.site-search .search-field {
    border-radius: 25px !important;
    border: 2px solid #00a99d !important;
    padding: 10px 20px !important;
}


/* ===== EMPTY CART PAGE STYLING ===== */

/* Hide original empty cart message and icon */
.cart-empty.woocommerce-info {
    display: none !important;
}

.wc-empty-cart-message {
    text-align: center !important;
    padding: 60px 20px !important;
}

/* Custom empty cart styling */
.woocommerce-cart .woocommerce::before {
    content: '🛒' !important;
    display: block !important;
    font-size: 80px !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    opacity: 0.7 !important;
}


/* Hide the sad face icon */
.page-template-template-fullwidth-php .woocommerce .wc-block-cart__empty-cart__image,
.woocommerce-cart .wc-block-cart__empty-cart__image,
.woocommerce-cart .woocommerce-info::before {
    display: none !important;
}

/* Better empty cart container */
.woocommerce-cart .wc-block-cart {
    text-align: center !important;
    padding: 40px !important;
}

/* Custom empty cart icon - shopping bag */
.woocommerce-cart .entry-content::before {
    content: '🛍️' !important;
    display: block !important;
    font-size: 100px !important;
    text-align: center !important;
    margin: 40px 0 20px !important;
}

/* Style the empty message */
.wc-block-cart__empty-cart__title,
.cart-empty {
    font-size: 24px !important;
    color: #333 !important;
    font-weight: 500 !important;
}


/* ===== QUANTITY INPUT FIX ===== */

/* Fix quantity input container */
.wc-block-components-quantity-selector {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #ddd !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    width: fit-content !important;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    border: none !important;
    width: 50px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    -moz-appearance: textfield !important;
    margin: 0 !important;
    padding: 10px 5px !important;
}

.wc-block-components-quantity-selector input::-webkit-outer-spin-button,
.wc-block-components-quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.wc-block-components-quantity-selector button {
    background: #00b8a7 !important;
    border: none !important;
    color: #fff !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    cursor: pointer !important;
    margin: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wc-block-components-quantity-selector button:hover {
    background: #00a99d !important;
}


/* ===== HIDE CART ICON OVERLAY ===== */
.wc-block-cart__empty-cart__image,
.wc-block-mini-cart__empty-cart-image,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block img,
.woocommerce-cart svg.wc-block-cart__empty-cart__image,
.wc-block-cart__empty-cart__image svg {
    display: none !important;
}

/* Remove any before/after content that adds cart icons */
.woocommerce-cart .entry-content::before {
    display: none !important;
    content: none !important;
}

.woocommerce-cart .woocommerce::before {
    display: none !important;
    content: none !important;
}


/* ===== HIDE ALL CART PAGE ICONS ===== */
.woocommerce-cart img[src*='cart'],
.woocommerce-cart img[src*='shopping'],
.woocommerce-cart img[src*='bag'],
.woocommerce-cart .wp-block-woocommerce-empty-cart-block img,
.woocommerce-cart .wp-block-woocommerce-filled-cart-block img.wc-block-cart__empty-cart__image,
.wc-block-cart__empty-cart__image,
.woocommerce-cart .entry-header img,
.woocommerce-cart header img,
.page-id-9 img[class*='cart'],
.page-id-9 img[class*='empty'],
.wc-block-components-sidebar-layout img,
.wp-block-woocommerce-cart img:not(.attachment-woocommerce_thumbnail) {
    display: none !important;
}

/* Remove decorative icons from cart page header */
.woocommerce-cart .entry-header::before,
.woocommerce-cart .entry-header::after,
.woocommerce-cart header::before,
.woocommerce-cart header::after {
    display: none !important;
    content: none !important;
}

/* Fix cart page layout */
.woocommerce-cart .entry-content {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

.woocommerce-cart .entry-header {
    margin-bottom: 20px !important;
}


/* ===== FIX PRODUCT IMAGES IN BLOCKS ===== */
.wc-block-grid__product-image img,
.wp-block-woocommerce-product-image img,
.woocommerce-product-gallery img,
.products .product img,
.wc-block-components-product-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wc-block-grid__product-image,
.wp-block-woocommerce-product-image {
    display: block !important;
    overflow: visible !important;
}


/* ===== FIX CART PRODUCT IMAGE ===== */
.wc-block-cart-items__row .wc-block-components-product-image,
.wc-block-cart-items__row img,
.wc-block-cart__main .wc-block-components-product-image img {
    display: block !important;
    visibility: visible !important;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
}

.wc-block-cart-items__row .wc-block-components-product-image {
    width: 80px !important;
    min-width: 80px !important;
    margin-right: 15px !important;
}


/* ===== FIX SEARCH INPUT ===== */
.site-search .search-field,
.woocommerce-product-search .search-field,
input[type="search"].search-field {
    padding-left: 45px !important;
    text-indent: 0 !important;
}

.site-search form,
.woocommerce-product-search {
    position: relative !important;
}

.site-search form::before,
.woocommerce-product-search::before {
    content: none !important;
}

.site-search .search-field::placeholder,
.woocommerce-product-search .search-field::placeholder {
    padding-left: 0 !important;
}


/* ===== FORCE SHOW CART IMAGES ===== */
.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-image,
.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-image img,
.wc-block-cart .wc-block-components-product-image,
.wc-block-cart .wc-block-components-product-image img,
table.cart img,
.woocommerce-cart-form img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100px !important;
    width: 100px !important;
    height: auto !important;
}

/* Remove any hiding rules */
.wc-block-cart-items__row > *:first-child {
    display: flex !important;
    align-items: flex-start !important;
}

.wc-block-components-product-image {
    flex-shrink: 0 !important;
    width: 100px !important;
    margin-right: 16px !important;
}

.wc-block-components-product-image a {
    display: block !important;
}


/* ===== FORCE CART BLOCK IMAGES ===== */
.wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 100px 1fr auto !important;
    gap: 16px !important;
    align-items: start !important;
}

.wc-block-cart-items__row .wc-block-components-product-image {
    grid-column: 1 !important;
    width: 100px !important;
    height: 100px !important;
}

.wc-block-cart-items__row .wc-block-components-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.wc-block-cart-items__row .wc-block-cart-item__product {
    grid-column: 2 !important;
}

.wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 3 !important;
}


/* ===== CLASSIC CART STYLING ===== */
.woocommerce-cart table.cart {
    width: 100% !important;
}

.woocommerce-cart table.cart img {
    width: 80px !important;
    height: auto !important;
}

.woocommerce-cart table.cart td {
    vertical-align: middle !important;
}

.woocommerce-cart .cart_totals {
    float: right !important;
    width: 40% !important;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 20px !important;
}

.woocommerce-cart .checkout-button {
    background: #333 !important;
    color: #fff !important;
    padding: 15px 30px !important;
    border-radius: 5px !important;
    width: 100% !important;
    text-align: center !important;
}

.woocommerce-cart .checkout-button:hover {
    background: #00b8a7 !important;
}


/* ===== HEADER LOGO STYLING ===== */
.site-branding {
    padding: 10px 0 !important;
}

.site-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
}

.site-title a {
    color: #fff !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Add lens icon before title */
.site-title a::before {
    content: '👁️' !important;
    font-size: 36px !important;
}

.site-description {
    font-size: 14px !important;
    color: rgba(255,255,255,0.85) !important;
    margin-top: 5px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
}


/* ===== SHOW NOVA POSHTA FIELDS ===== */
.wc-ukr-shipping-nova-poshta-fields,
.wc-ukr-shipping-fields,
.wcus-np-field,
.wcus-field,
#billing_wcus_np_city_field,
#billing_wcus_np_warehouse_field,
#shipping_wcus_np_city_field,
#shipping_wcus_np_warehouse_field,
.wcus-nova-poshta-city,
.wcus-nova-poshta-warehouse,
[class*="wcus"],
[class*="nova-poshta"],
[id*="wcus"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

.wc-ukr-shipping-select-wrap {
    margin-bottom: 20px !important;
}

