.lihapood-recent-products {
    width: 100%;
    max-width: 100%;
}

/* Elementor nested menu content: if not active, force hidden */
[id^="e-n-menu-content-"]:not(.e-active) {
    display: none !important;
}

/* Ensure active state can re-show even if something set inline display:none earlier */
[id^="e-n-menu-content-"].e-active {
    display: var(--display, block) !important;
}

.lihapood-recent-products-grid {
    width: 1384px !important;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    box-sizing: border-box;
}

.lihapood-recent-product-item {
    height: 100%;
}

.lihapood-recent-product-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1180px) {
    .lihapood-recent-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .lihapood-recent-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .lihapood-recent-products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/*
Theme Name: Lihapood Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A clean blank WordPress theme with WooCommerce and Elementor support
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lihapood
Tags: woocommerce, elementor, e-commerce, custom-colors

This theme is licensed under the GPL.
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #000000;
    background-color: #FFFEF7;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #3D563B;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

a {
    color: #3D563B;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Layout */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #FFFEF7;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    color: #3D563B;
    font-weight: 700;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #000000;
    font-weight: 500;
}

/* Main Content */
.site-main {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Footer */
.site-footer {
    background-color: #FFFEF7;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.site-footer p {
    color: #000000;
}

/* WooCommerce Compatibility */
.woocommerce {
    color: #000000;
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3 {
    color: #3D563B;
}

/* Lisa korvi nupp tootevõrgus (shop/archive) ja üldine add-to-cart */
.add_to_cart_button,
.woocommerce a.add_to_cart_button {
    border-radius: 2px;
    border: 1px solid #3D563B;
    background: #3D563B;
    color: #FFF;
    font-family: Sora, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-decoration: none;
    display: inline-block;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    text-align: center;
    border-radius: 4px !important;
}

.add_to_cart_button:hover,
.woocommerce a.add_to_cart_button:hover {
    background: #3D563B;
    color: #FFF;
    border-color: #3D563B;
}

/* Tootevõrgu maht toote nime järel (nagu pilt 1 – maht nime juures, mitte hinna real) */
.woocommerce ul.products .woocommerce-loop-product__title {
    display: inline;
}
.lihapood-loop-product-maht {
    display: inline;
    color: #3D563B;
    font-family: Sora, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: normal;
}

/* Tootevõrk (pood): kõik hinnad paremale */
.woocommerce ul.products li.product .price {
    text-align: right;
    margin-left: auto;
    display: block;
}

/* Ostukorvi SIDEBAR: maht vasakul, kõik hinnad alati paremale */
.lihapood-cart-widget .lihapood-loop-price-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
}

.lihapood-cart-widget .lihapood-loop-maht {
    color: #3D563B;
    font-family: Sora, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: normal;
    flex-shrink: 0;
}

.lihapood-cart-widget .lihapood-loop-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    min-width: 0;
    margin-left: auto;
    flex-shrink: 0;
    text-align: right;
}

.lihapood-cart-widget .lihapood-loop-old-price {
    font-family: Judson, serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 144.476%;
    color: #9F9F9F;
    text-decoration: line-through;
}

.lihapood-cart-widget .lihapood-loop-sale-price,
.lihapood-cart-widget .lihapood-loop-current-price {
    font-family: Judson, serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 144.476%;
    color: #3D563B;
}

/* Elementor Compatibility */
.elementor-widget-heading .elementor-heading-title {
    color: #3D563B;
}



.elementor-widget-text-editor {
    color: #000000;
}

.elementor-section {
    background-color: #FFFEF7;
}

/* Elementor Slides - Hero Gradient Overlay */
.elementor-slides .swiper-slide {
    position: relative;
}

.elementor-slides .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/hero-gradient.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

.elementor-slides .swiper-slide-bg {
    z-index: 1;
}

.elementor-slides .swiper-slide-inner {
    position: relative;
    z-index: 3;
}

.elementor-slides .elementor-background-overlay {
    z-index: 1.5;
}

/* Elementor WooCommerce Add to Cart Widget */
.lihapood-add-to-cart-widget {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
}

/* Retsept filters (shortcode: [retsept_filters]) */
.lihapood-retsept-filters {
    width: 100%;
}

.lihapood-retsept-filters-container {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    position: relative;
    gap: 6px;
}

.lihapood-retsept-filter-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    scroll-behavior: smooth;
    padding: 4px 0;
}

.lihapood-retsept-filter-list::-webkit-scrollbar {
    display: none;
}

.lihapood-retsept-filter-scroll-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3D563B;
    font-size: 18px;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

.lihapood-retsept-filter-scroll-btn:hover {
    opacity: 1;
}

.lihapood-retsept-filter-btn {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    font-family: "Sora", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #3D563B;
    white-space: nowrap;
    flex-shrink: 0;
}

.lihapood-retsept-filter-btn:hover {
    opacity: 0.8;
}

.lihapood-retsept-filter-btn.active {
    display: flex;
    width: 83px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 2px;
    background: #3D563B;
    color: #ffffff;
    border-color: #3D563B;
    font-weight: 600;
}

/* Prevent "flash" of default pill style on click (mousedown/touch) */
.lihapood-retsept-filter-btn:active,
.lihapood-retsept-filter-btn:focus-visible {
    display: flex;
    width: 83px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 2px;
    background: #3D563B;
    color: #ffffff;
    border-color: #3D563B;
    font-weight: 600;
}

/* Quantity Selector for Simple Products */
.lihapood-quantity-wrapper {
    display: flex;
    border: 1px solid #3D563B;
    border-radius: 2px;
    overflow: hidden;
    background: white;
    width: 132px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.lihapood-quantity-btn {
    background: white;
    border: none;
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #3D563B;
    font-size: 18px;
    font-weight: 400;
    padding: 0;
    transition: background-color 0.2s ease;
}

.lihapood-quantity-btn:hover {
    background: #f5f5f5;
}

.lihapood-quantity-btn:active {
    background: #e0e0e0;
}

.lihapood-quantity-display {
    background: #3D563B;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 40px;
}

.lihapood-quantity-input {
    background: transparent;
    border: none;
    color: white;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    padding: 0 10px;
    appearance: textfield;
    -moz-appearance: textfield;
}

.lihapood-quantity-input::-webkit-outer-spin-button,
.lihapood-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Variation Selector for Variable Products */
.lihapood-variation-selector-wrapper {
    margin-bottom: 0;
    width: 132px;
    flex-shrink: 0;
}

.lihapood-variation-select {
    width: 100%;
    min-width: 0; /* allow 132px wrapper width */
    height: 40px; /* match quantity height */
    padding: 10px 15px;
    border: 1px solid #3D563B;
    border-radius: 4px;
    background: white;
    color: #3D563B;
    font-size: 16px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233D563B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.lihapood-variation-select:focus {
    outline: none;
    border-color: #2d4230;
}

/* Add to Cart Button */
.lihapood-button-wrapper {
    display: flex;
    margin: 0;
    padding: 0;
}

.lihapood-add-to-cart-widget .added_to_cart.wc-forward {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #3D563B;
    color: #FFFEF7;
    padding: 6px 10px;
    border-radius: 2px;
    font-family: Sora, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    z-index: 5;
}

.lihapood-add-to-cart-widget .added_to_cart.wc-forward:hover {
    text-decoration: underline;
}

.lihapood-add-to-cart-btn {
    border-radius: 2px;
    border: 1px solid #3D563B;
    background: #3D563B;
    color: #FFF;
    font-family: Sora, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    padding: 10px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    min-height: 40px;
    margin: 0;
    height: 100%;
}

.lihapood-add-to-cart-btn:hover:not(:disabled) {
    background: #3D563B;
}

.lihapood-add-to-cart-btn:disabled {
    background: #3D563B !important;
    opacity: 0.5;
    cursor: not-allowed;
}

.lihapood-add-to-cart-btn:active:not(:disabled) {
    background: #3D563B;
}

/* Simple Product Form Layout */
.lihapood-simple-product-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

.lihapood-simple-product-form .lihapood-button-wrapper {
    margin-left: auto;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Variable Product Form Layout */
.lihapood-add-to-cart-widget .lihapood-variations-form {
    display: flex;
    flex-direction: row; /* place select next to button */
    align-items: center;
    gap: 0;
    width: 100%;
}

.lihapood-add-to-cart-widget .lihapood-variations-form .lihapood-button-wrapper {
    margin-top: 0;
    margin-left: auto !important; /* push button to the right */
    margin-right: 0;
    display: flex;
    align-items: center;
}

.lihapood-add-to-cart-widget .lihapood-variations-form .lihapood-variation-selector-wrapper {
    width: 132px;
    margin-bottom: 0;
    flex: 0 0 132px;
}

/* Force same button style for variable products */
.lihapood-add-to-cart-widget .lihapood-variations-form .lihapood-add-to-cart-btn,
.lihapood-add-to-cart-widget .lihapood-variations-form .single_add_to_cart_button {
    border-radius: 2px !important;
    border: 1px solid #3D563B !important;
    background: #3D563B !important;
    color: #FFF !important;
    font-family: Sora, sans-serif !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 300 !important;
    line-height: normal !important;
    padding: 10px 24px !important;
}

.lihapood-variations-form .lihapood-add-to-cart-btn.disabled,
.lihapood-variations-form .single_add_to_cart_button.disabled,
.lihapood-variations-form .single_add_to_cart_button.wc-variation-selection-needed,
.lihapood-variations-form .lihapood-add-to-cart-btn[disabled] {
    background: #3D563B !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Responsive */
@media (max-width: 768px) {
    .lihapood-add-to-cart-widget {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Single product page: remove hover change explicitly */
    body.single-product .lihapood-add-to-cart-btn:hover:not(:disabled),
    body.single-product .lihapood-add-to-cart-btn:active:not(:disabled) {
        background: #3D563B;
    }
    
    /* Simple Product Form - Mobile */
    .lihapood-simple-product-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .lihapood-simple-product-form .lihapood-quantity-wrapper {
        width: 100%;
    }
    
    .lihapood-simple-product-form .lihapood-button-wrapper {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        display: flex;
        justify-content: center; /* center button */
    }
    
    .lihapood-add-to-cart-btn {
        width: auto; /* keep natural width */
    }
    
    /* Variable Product Form - Mobile */
    .lihapood-add-to-cart-widget .lihapood-variations-form {
        flex-direction: column !important;
        align-items: stretch;
    }
    
    .lihapood-add-to-cart-widget .lihapood-variations-form .lihapood-variation-selector-wrapper {
        width: 100%;
        flex: 0 0 auto;
    }
    
    .lihapood-variation-select {
        width: 100%;
    }
    
    .lihapood-add-to-cart-widget .lihapood-variations-form .lihapood-button-wrapper {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        display: flex;
        justify-content: center; /* center button under dropdown */
        margin-top: 1rem;
    }
    
    .lihapood-add-to-cart-widget .lihapood-variations-form .lihapood-add-to-cart-btn {
        width: auto;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Elementor WooCommerce My Account Widget */
.lihapood-my-account-widget {
    color: #3D563B;
    font-family: Sora;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lihapood-my-account-widget * {
    font-family: 'Sora', sans-serif;
    color: #3D563B;
}

.lihapood-my-account-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    padding: 1.5rem 0;
}

.lihapood-my-account-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    height: 100%;
    background-color: #F6F3E5;
    z-index: -1;
}

.lihapood-my-account-tabs {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.lihapood-my-account-tab {
    color: #3D563B;
    font-family: Sora;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: lowercase;
    border: none;
    background: transparent;
    padding: 0.65rem 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}



.lihapood-my-account-tab.is-active {
    color: #FFF;
    font-family: Sora;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: lowercase;
    background: #3D563B;
    padding: 0.65rem 1.5rem;
    border-radius: 0;
}

.lihapood-my-account-logout {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.lihapood-my-account-logout img {
    width: 18px;
    height: 18px;
    display: block;
}

.lihapood-my-account-logout:hover,
.lihapood-my-account-logout:focus {
    opacity: 0.7;
}

.lihapood-my-account-content {
    width: 100%;
}

.lihapood-my-account-tab-panel {
    width: 100%;
}

.lihapood-my-account-tab-panel:not(.is-active) {
    display: none;
}

.lihapood-orders-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.lihapood-orders-head {
  color: #3D563B;
  font-family: Sora;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  position: relative;
  display: grid;
  grid-template-columns: 20% 20% 20% 20% 20%;
  column-gap: 0;
  align-items: flex-end;
  text-transform: none;
  letter-spacing: 0.04em;
  padding-bottom: 19px;
}


.lihapood-orders-head > span {
    display: flex;
    align-items: center;
}

.lihapood-orders-head > span:nth-child(1) {
    justify-content: flex-start;
}

.lihapood-orders-head > span:nth-child(2),
.lihapood-orders-head > span:nth-child(3) {
    justify-content: flex-start;
}

.lihapood-orders-head > span:nth-child(4) {
    justify-content: center;
    padding-right: 72px;
}

.lihapood-orders-head > span:nth-child(5) {
    justify-content: center;
}
.lihapood-order-summary-cell{
  border-bottom: 1px solid #3D563B;
}
.lihapood-order-data > .lihapood-order-summary-cell:nth-child(2),
.lihapood-order-data > .lihapood-order-summary-cell:nth-child(3) {
    justify-content: flex-start;
}

.lihapood-order-data > .lihapood-order-summary-cell:nth-child(4) {
    justify-content: center;
    align-items: flex-end;
    padding-right: 0px;
}

.lihapood-order-row > .lihapood-order-actions {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    justify-content: center;
    padding: 0.5rem 0;
}



.lihapood-orders-wrapper > .lihapood-order:nth-child(even) .lihapood-order-data {
    background-color: transparent;
}



.lihapood-order:last-child {
    border-bottom: none;
}

.lihapood-order-row {
    display: grid;
    grid-template-columns: 74% 30%;
    column-gap: 0;
    align-items: center;
}

.lihapood-order-data {
    display: grid;
    grid-template-columns: 27% 27% 23% 25%;
    column-gap: 0;
    align-items: center;
}

.lihapood-order:first-child .lihapood-order-data > .lihapood-order-summary-cell {
    border-top: 1px solid #3D563B;
}

.lihapood-order-data > .lihapood-order-summary-cell {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.lihapood-order-data > .lihapood-order-summary-cell:nth-child(1) {
    justify-content: flex-start;
}

.lihapood-order-summary-cell {
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
}

.lihapood-order-data > .lihapood-order-summary-cell:nth-child(4) {
    font-weight: 600;
    color: #3D563B;
}

.lihapood-order-button {
    color: #3D563B;
    font-family: Sora;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    border: 1px solid #3D563B;
    border-radius: 2px;
    padding: 0.55rem 1.25rem;
    text-transform: none;
    letter-spacing: 0.04em;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lihapood-order-invoice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.lihapood-order-button:hover,
.lihapood-order-button:focus {
    background: #3D563B;
    color: #FFFEF7;
    box-shadow: 0 8px 18px rgba(61, 86, 59, 0.18);
    outline: none;
}

.lihapood-order-toggle:hover,
.lihapood-order-toggle:focus,
.lihapood-order-toggle:active {
    background: #FFFEF7;
    color: #3D563B;
    box-shadow: none;
}

.lihapood-order-button--primary {
    margin-top: 1.5rem;
    background: #fff;
    color: #3D563B;
    padding: 10px;
    border-radius: 2px;
}

.lihapood-order-button--primary:hover,
.lihapood-order-button--primary:focus {
    background: #3D563B;
    color: #FFFEF7;
}

.lihapood-order-button--secondary {
    text-decoration: none;
}

.lihapood-order-toggle-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.lihapood-order-toggle[aria-expanded="true"] .lihapood-order-toggle-icon {
    transform: rotate(180deg);
}

.lihapood-recent-products {
    width: 100%;
}

.lihapood-recent-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    width: min(100%, 1384px);
    padding: 0 2rem;
    margin: 0 auto;
}

.lihapood-recent-product-item {
    height: 100%;
}

@media (max-width: 1180px) {
    .lihapood-recent-product-item {
        flex: unset;
    }

    .lihapood-recent-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .lihapood-recent-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 1.5rem;
    }
}

@media (max-width: 600px) {
    .lihapood-recent-products-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

.lihapood-order-details {
    margin-top: 28px;
    padding-top: 28px;
    padding-bottom: 1.75rem;
    width: 73%;
    background-color: transparent;
}

.lihapood-order-details[hidden] {
    display: none !important;
}

.lihapood-order-details-heading {
    color: #3D563B;
    font-family: Sora;
    font-size: 23px;
    font-style: normal;
    font-weight: 600;
    line-height: 132%;
    letter-spacing: -0.23px;
    margin-bottom: 1.5rem;
}

.lihapood-order-lines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lihapood-order-lines-head,
.lihapood-order-lines-body {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 1rem;
}

.lihapood-order-lines-body {
    border-bottom: 1px solid #3D563B;
}

.lihapood-order-lines-head span {
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 145%;
}

.lihapood-order-lines-head span:last-child {
    text-align: right;
}

.lihapood-order-line {
    display: contents;
}

.lihapood-order-line span {
    padding: 0.5rem 0;
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
}

.lihapood-order-line span:last-child {
    text-align: right;
}


.lihapood-order-totals {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.lihapood-order-total-row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 1rem;
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
    padding: 0.5rem 0;
    border-bottom: 1px solid #3D563B;
}

.lihapood-order-total-row > span:first-child {
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
}

.lihapood-order-total-row > span:last-child {
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
    text-align: right;
}

.lihapood-order-shipping-method {
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
    text-align: right;
}

.lihapood-order-total-row--grand {
    border-bottom: none;
}

.lihapood-order-total-row--grand > span:first-child {
    font-weight: 600;
}

.lihapood-order-total-row--grand > span:last-child {
    font-weight: 600;
}

.lihapood-order-address-heading {
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 145%;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.lihapood-order-address {
    border: 1px solid #3D563B;
    border-radius: 2px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    background: #fff;
}

.lihapood-order-address-content {
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 190%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lihapood-order-address-name,
.lihapood-order-address-address,
.lihapood-order-address-city {
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
}

.lihapood-order-address-phone,
.lihapood-order-address-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
}

.lihapood-order-address-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.lihapood-no-orders {
    font-size: 1rem;
    font-weight: 500;
}

.lihapood-contact-card {
    border: 1px solid rgba(61, 86, 59, 0.25);
    border-radius: 12px;
    padding: 2rem;
    background: rgba(245, 242, 230, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 560px;
}

.lihapood-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    font-size: 0.95rem;
}

.lihapood-contact-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    flex: 0 0 140px;
}

.lihapood-contact-value {
    flex: 1 1 auto;
}

.lihapood-contact-row--address .lihapood-contact-value {
    line-height: 1.6;
}

.lihapood-contact-actions {
    display: flex;
    justify-content: flex-start;
}

/* Account Form Styles */
.lihapood-account-form {
    max-width: 800px;
    font-family: 'Sora', sans-serif;
    color: #3D563B;
}

.lihapood-form-section-title {
    font-family: 'Literata', serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    color: #3D563B;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.lihapood-form-section-title:first-child {
    margin-top: 0;
}

/* Password Section Dropdown */
.lihapood-password-section {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.lihapood-password-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.lihapood-password-toggle .lihapood-form-section-title {
    margin: 0;
    flex: 1;
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
    color: #3D563B;
}

.lihapood-password-toggle-icon {
    width: 12px;
    height: 12px;
    margin-left: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.lihapood-password-toggle[aria-expanded="true"] .lihapood-password-toggle-icon {
    transform: rotate(180deg);
}

.lihapood-password-fields {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(61, 86, 59, 0.2);
}

.lihapood-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.lihapood-form-field {
    margin-bottom: 1.5rem;
}

.lihapood-form-field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #3D563B;
    margin-bottom: 0.5rem;
}

.lihapood-password-fields .lihapood-form-field label {
    display: block;
    color: #3D563B;
    font-family: Sora;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.lihapood-password-fields .lihapood-input-text::placeholder {
    opacity: 0;
    color: transparent;
}

.lihapood-form-field .required {
    color: #d63638;
}

.lihapood-form-field .description {
    display: block;
    font-size: 0.95rem;
    color: #3D563B;
    margin-top: 0.25rem;
    font-style: normal;
}

.lihapood-input-text {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #3D563B;
    border-radius: 2px;
    font-size: 0.95rem;
    font-family: 'Sora', sans-serif;
    color: #3D563B;
    background: #F6F3E5;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lihapood-input-text::placeholder {
    color: rgba(61, 86, 59, 0.6);
    opacity: 1;
}

.lihapood-input-text:focus {
    outline: none;
    border-color: #3D563B;
    box-shadow: 0 0 0 2px rgba(61, 86, 59, 0.1);
}

.lihapood-input-text:not(:placeholder-shown) {
    background: #F6F3E5;
    color: #3D563B;
}

.lihapood-input-text[type="password"] {
    font-family: monospace;
}

.lihapood-form-field input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    accent-color: #3D563B;
    cursor: pointer;
}

.lihapood-form-field input[type="checkbox"] + label,
.lihapood-form-field label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

.lihapood-link {
    color: #3D563B;
    text-decoration: underline;
    margin-left: 0.25rem;
}

.lihapood-link:hover {
    opacity: 0.7;
}

/* Allahindluse kast Elementor sektsioonis (checkout) */
.elementor-18197 .elementor-element.elementor-element-e6c1dc1 {
    font-family: "Sora", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #3D563B;
    background-color: #FFFFFF;
    text-align: right;
}

.lihapood-form-submit {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.woocommerce-error,
.woocommerce-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    font-size: 0.95rem;
}

.woocommerce-error {
    background: #fef0f0;
    border-left: 4px solid #d63638;
    color: #d63638;
}

.woocommerce-message {
    background: #f0f9f0;
    border-left: 4px solid #3D563B;
    color: #3D563B;
}

#cart .elementor-icon-list-icon {
    position: relative;
}

.lihapood-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 2px;
    background-color: #3D563B;
    color: #FFFEF7;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.lihapood-cart-badge.is-visible {
    opacity: 1;
    transform: scale(1);
}

.lihapood-cart-widget {
    background-color: #FFFEF7;
    border-radius: 20px;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lihapood-cart-widget.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.lihapood-cart-widget.has-error {
    animation: lihapood-cart-widget-shake 0.3s ease;
}

@keyframes lihapood-cart-widget-shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    50% {
        transform: translateX(4px);
    }
    75% {
        transform: translateX(-4px);
    }
    100% {
        transform: translateX(0);
    }
}

.lihapood-cart-widget__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* Keritav osa (progress + tooted + soovitused); footer jääb alla */
.lihapood-cart-widget__content .lihapood-cart-widget__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lihapood-cart-widget__content.is-empty {
    text-align: center;
    justify-content: center;
}

.lihapood-cart-widget__progress {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lihapood-cart-widget__progress,
.lihapood-cart-widget__items,
.lihapood-cart-widget__recommendations {
    padding-left: 16px;
    padding-right: 16px;
}

.lihapood-cart-progress-bar {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 2px;
    background-color: #E1E1BC;
    overflow: hidden;
}

.lihapood-cart-progress-bar__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--lihapood-progress, 0%);
    max-width: 100%;
    background-color: #3D563B;
    border-radius: inherit;
    transition: width 0.3s ease;
}

.lihapood-cart-progress-bar__message {
  margin: 0;
  color: #3D563B;
  font-family: Sora;
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 145%;
  letter-spacing: 0.12px;
}

.lihapood-cart-widget__items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lihapood-cart-widget__recommendations,
.elementor-menu-cart__container .lihapood-cart-widget__recommendations,
.elementor-widget-woocommerce-menu-cart .lihapood-cart-widget__recommendations {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 24px (content gap) + 37px = 61px vahe enne footerit */
    padding-bottom: 37px;
}

.lihapood-cart-widget__recommendations-title,
.elementor-menu-cart__container .lihapood-cart-widget__recommendations-title,
.elementor-widget-woocommerce-menu-cart .lihapood-cart-widget__recommendations-title {
    margin: 0;
    color: #3D563B;
    font-family: Sora, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
}

.lihapood-cart-widget__recommendations-grid,
.elementor-menu-cart__container .lihapood-cart-widget__recommendations-grid,
.elementor-widget-woocommerce-menu-cart .lihapood-cart-widget__recommendations-grid {
    width: 100%;
}

/* Soovitustoodete grid ostukorvi widgetis – 3 toodet laiuse peale */
.lihapood-cart-widget__recommendations-grid .lihapood-reco-grid,
.elementor-menu-cart__container .lihapood-cart-widget__recommendations-grid .lihapood-reco-grid,
.elementor-widget-woocommerce-menu-cart .lihapood-cart-widget__recommendations-grid .lihapood-reco-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-item,
.elementor-menu-cart__container .lihapood-cart-widget__recommendations-grid .lihapood-reco-item,
.elementor-widget-woocommerce-menu-cart .lihapood-cart-widget__recommendations-grid .lihapood-reco-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-link,
.elementor-menu-cart__container .lihapood-cart-widget__recommendations-grid .lihapood-reco-link,
.elementor-widget-woocommerce-menu-cart .lihapood-cart-widget__recommendations-grid .lihapood-reco-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-img,
.elementor-menu-cart__container .lihapood-cart-widget__recommendations-grid .lihapood-reco-img,
.elementor-widget-woocommerce-menu-cart .lihapood-cart-widget__recommendations-grid .lihapood-reco-img {
    width: 102.697px;
    height: 103px;
    aspect-ratio: 102.70 / 103.00;
    border-radius: 2px;
    object-fit: cover;
    background: lightgray;
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-img--placeholder,
.elementor-menu-cart__container .lihapood-cart-widget__recommendations-grid .lihapood-reco-img--placeholder,
.elementor-widget-woocommerce-menu-cart .lihapood-cart-widget__recommendations-grid .lihapood-reco-img--placeholder {
    object-fit: contain;
    background: #FFF;
    padding: 12px;
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-title,
.elementor-menu-cart__container .lihapood-cart-widget__recommendations-grid .lihapood-reco-title,
.elementor-widget-woocommerce-menu-cart .lihapood-cart-widget__recommendations-grid .lihapood-reco-title {
    color: #3D563B;
    font-family: Literata, serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-meta,
.elementor-menu-cart__container .lihapood-cart-widget__recommendations-grid .lihapood-reco-meta,
.elementor-widget-woocommerce-menu-cart .lihapood-cart-widget__recommendations-grid .lihapood-reco-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto; /* hoiab hinnad ühel kõrgusel */
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-weight {
    color: rgba(61, 86, 59, 0.6);
    font-family: Sora, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-price,
.lihapood-cart-widget__recommendations-grid .lihapood-reco-price * {
    color: #3D563B !important;
    font-family: Judson, serif !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 144.476% !important; /* 20.227px */
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-price {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 6px;
    text-align: right;
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-price del,
.lihapood-cart-widget__recommendations-grid .lihapood-reco-price ins {
    text-decoration: none;
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-price del {
    opacity: 0.6;
}

.lihapood-cart-widget__recommendations-grid .lihapood-reco-btn,
.elementor-menu-cart__container .lihapood-cart-widget__recommendations-grid .lihapood-reco-btn,
.elementor-widget-woocommerce-menu-cart .lihapood-cart-widget__recommendations-grid .lihapood-reco-btn,
.lihapood-cart-widget__recommendations .add_to_cart_button.lihapood-reco-btn {
    display: flex !important;
    width: 100%;
    height: auto;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    border: 1px solid #3D563B !important;
    background: #3D563B !important;
    color: #FFF !important;
    text-decoration: none;
    margin-top: 8px;
}

.lihapood-cart-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #3D563B;
}

.lihapood-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lihapood-cart-item__thumbnail {
    flex: 0 0 102.664px;
    width: 102.664px;
    align-self: stretch;
    min-height: 0;
}

.lihapood-cart-item__thumbnail img,
.lihapood-cart-item__placeholder {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
    border-radius: 2px;
    object-fit: cover;
    object-position: center;
    background-color: rgba(61, 86, 59, 0.08);
}

.lihapood-cart-item__placeholder {
    display: block;
}

.lihapood-cart-item__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lihapood-cart-item__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lihapood-cart-item__title {
    margin: 0;
    color: #3D563B;
    font-family: Literata, serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.lihapood-cart-item__title a {
    color: inherit;
    text-decoration: none;
}

.lihapood-cart-item__title a:hover {
    text-decoration: underline;
}

.lihapood-cart-item__maht {
    color: #3D563B;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.35;
    margin-top: 0.15rem;
}

.lihapood-cart-item__producer {
    color: #3D563B;
    font-family: Sora;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 144.476%;
    margin-top: 2px;
}

.lihapood-cart-item__meta {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
}

.lihapood-cart-item__meta dl {
    margin: 0;
}

.lihapood-cart-item__meta dt {
    font-weight: 500;
}

/* Sidebar koguse väli: nagu pilt 1 – valge −, roheline keskosa (number), valge + */
.lihapood-cart-item__quantity {
    display: flex;
    border: 1px solid #3D563B;
    border-radius: 4px;
    overflow: hidden;
    background: transparent;
    width: 132px;
    flex-shrink: 0;
}

.lihapood-cart-item__quantity .lihapood-quantity-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #3D563B;
    border: none;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.lihapood-cart-item__quantity .lihapood-quantity-input {
    background: #3D563B;
    color: #fff;
    border: none;
    border-left: 1px solid #3D563B;
    border-right: 1px solid #3D563B;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    min-width: 44px;
    height: 40px;
    padding: 0;
}

.lihapood-cart-item__sidebar {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    min-width: 110px;
}

.lihapood-cart-item__price {
    font-weight: 600;
    color: #3D563B;
    text-align: right;
}

.lihapood-cart-item__weight {
    color: #3D563B;
    font-family: Sora;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
}

/* Sidebar: tootja ja maht samamoodi nagu kassas (review-order) */
.lihapood-cart-item__producer {
    display: block;
    margin-top: 8px;
    color: #3D563B;
    font-family: Sora, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 144.476%;
}

.lihapood-cart-item__maht {
    display: block;
    margin-top: 4px;
    color: #3D563B;
    font-family: Sora, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
}

.lihapood-cart-item__remove {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    color: #3D563B;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.lihapood-cart-widget__footer {
    flex-shrink: 0;
    margin-top: auto;
    background-color: #E1E1BC;
    padding: 24px 16px;
}


.lihapood-cart-widget__summary {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lihapood-cart-widget__footer-note {
    margin: 0;
    color: #3D563B;
    font-family: Sora;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
    letter-spacing: 0.12px;
}

.lihapood-cart-widget__totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.95rem;
}

.lihapood-cart-widget__totals-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.lihapood-cart-widget__totals-row.is-total span:first-child {
    color: #3D563B;
    font-family: Sora;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
}

.lihapood-cart-widget__totals-row.is-total span:last-child {
    color: #3D563B;
    font-family: Literata;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.lihapood-cart-widget__totals-row.is-discount span:last-child {
    color: #c03a2b;
}

.lihapood-cart-widget__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.lihapood-cart-widget__action-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 2px;
    border: 1px solid #3D563B;
    background-color: #3D563B;
    color: #FFFEF7;
    font-family: Sora;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.lihapood-cart-widget__action-btn:hover {
    transform: translateY(-1px);
}

.lihapood-cart-widget__action-btn.is-secondary {
    background-color: #FFF;
    color: #3D563B;
}

.lihapood-cart-widget__action-btn.is-secondary:hover {
    background-color: rgba(61, 86, 59, 0.08);
}

.lihapood-quantity-display .lihapood-quantity-input {
    min-width: 48px;
    text-align: center;
}

@media (max-width: 767px) {
    .lihapood-cart-widget {
        padding: 22px;
    }

    .lihapood-cart-item {
        flex-direction: column;
        align-items: stretch;
    }

    .lihapood-cart-item__thumbnail {
        width: 100%;
        max-width: 120px;
    }

    .lihapood-cart-item__sidebar {
        align-items: flex-start;
    }

    .lihapood-cart-widget__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lihapood-cart-widget__action-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .lihapood-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Tablet ja mobiil: sama loogika – number/olek/kuupäev vasakul, hind paremal, nupud 50% */
@media (max-width: 1024px) {
    .lihapood-orders-head {
        display: none;
    }

    .lihapood-orders-head::after {
        right: 0;
    }

    .lihapood-orders-head-actions {
        grid-column: 1 / -1;
        justify-self: flex-start;
        min-width: 0;
    }

    .lihapood-order-row {
        grid-template-columns: 1fr;
        row-gap: 0.75rem;
    }

    /* Vasakul: tellimuse number, all olek, all kuupäev. Paremal: hind. */
    .lihapood-order-data {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.5rem 1rem;
    }

    .lihapood-order-data > .lihapood-order-summary-cell:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .lihapood-order-data > .lihapood-order-summary-cell:nth-child(2) {
        grid-column: 1;
        grid-row: 3;
    }

    .lihapood-order-data > .lihapood-order-summary-cell:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    .lihapood-order-data > .lihapood-order-summary-cell:nth-child(4) {
        grid-column: 2;
        grid-row: 1 / -1;
        align-self: start;
        justify-content: flex-end;
    }

    /* Nupud 50% laiusega, üksteise kõrval */
    .lihapood-order-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100%;
        gap: 0.5rem;
        justify-content: stretch;
        padding-left: 0;
        padding-right: 0;
    }

    .lihapood-order-actions .lihapood-order-button,
    .lihapood-order-actions a.lihapood-order-button {
        flex: 1 1 0% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Ära näita andmeridade all olevaid jooni */
    .lihapood-order-data > .lihapood-order-summary-cell,
    .lihapood-order:first-child .lihapood-order-data > .lihapood-order-summary-cell {
        border-top: none !important;
        border-bottom: none !important;
    }

    /* Eraldus igal tellimusel */
    .lihapood-order {
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
        border-bottom: 1px solid rgba(61, 86, 59, 0.25);
    }

    .lihapood-order:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .lihapood-order-row {
        gap: 0.5rem 1rem;
    }

    .lihapood-order-data {
        gap: 0.5rem 1rem;
    }

    .lihapood-order-summary-cell {
        font-size: 0.9rem;
    }

    .lihapood-order-details {
        width: 100% !important;
    }

    .lihapood-contact-card {
        width: 100%;
    }

    .lihapood-contact-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .lihapood-contact-label {
        flex: 0 0 auto;
    }
}

/* Checkout Benefits Box */
.lihapood-checkout-benefits {
    background-color: #F6F3E5;
    border: 1px solid #3D563B;
    border-radius: 2px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Sora', sans-serif;
}

.lihapood-checkout-benefits__title {
    color: #3D563B;
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
}

.lihapood-checkout-benefits__text {
    color: #3D563B;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.lihapood-checkout-benefits__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lihapood-checkout-benefits__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 2px;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.lihapood-checkout-benefits__btn--login {
    background-color: #FFF;
    color: #3D563B;
    border: 1px solid #3D563B;
}

.lihapood-checkout-benefits__btn--login:hover {
    background-color: #3D563B;
    color: #FFFEF7;
}

.lihapood-checkout-benefits__btn--register {
    background-color: #3D563B;
    color: #FFFEF7;
    border: 1px solid #3D563B;
}

.lihapood-checkout-benefits__btn--register:hover {
    background-color: #2d4230;
    border-color: #2d4230;
}

@media (max-width: 768px) {
    .lihapood-checkout-benefits {
        padding: 1rem;
    }

    .lihapood-checkout-benefits__actions {
        flex-direction: column;
    }

    .lihapood-checkout-benefits__btn {
        width: 100%;
    }
}

/* WooCommerce Checkout Input Styles */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="password"],
.wc-block-checkout input[type="number"],
.wc-block-checkout textarea,
.wc-block-checkout select,
.wp-block-woocommerce-checkout input[type="text"],
.wp-block-woocommerce-checkout input[type="email"],
.wp-block-woocommerce-checkout input[type="tel"],
.wp-block-woocommerce-checkout input[type="password"],
.wp-block-woocommerce-checkout input[type="number"],
.wp-block-woocommerce-checkout textarea,
.wp-block-woocommerce-checkout select,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper textarea,
.woocommerce-input-wrapper select,
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-select input,
.wc-block-components-select select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #3D563B;
    border-radius: 2px;
    font-size: 0.95rem;
    font-family: 'Sora', sans-serif;
    color: #3D563B;
    background: #F6F3E5;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.woocommerce-checkout input[type="text"]::placeholder,
.woocommerce-checkout input[type="email"]::placeholder,
.woocommerce-checkout input[type="tel"]::placeholder,
.woocommerce-checkout textarea::placeholder,
.wc-block-checkout input[type="text"]::placeholder,
.wc-block-checkout input[type="email"]::placeholder,
.wc-block-checkout input[type="tel"]::placeholder,
.wc-block-checkout textarea::placeholder,
.wp-block-woocommerce-checkout input[type="text"]::placeholder,
.wp-block-woocommerce-checkout input[type="email"]::placeholder,
.wp-block-woocommerce-checkout input[type="tel"]::placeholder,
.wp-block-woocommerce-checkout textarea::placeholder,
.woocommerce-input-wrapper input::placeholder,
.woocommerce-input-wrapper textarea::placeholder,
.wc-block-components-text-input input::placeholder,
.wc-block-components-text-input textarea::placeholder {
    color: rgba(61, 86, 59, 0.6);
    opacity: 1;
}

.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout input[type="password"]:focus,
.woocommerce-checkout input[type="number"]:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus,
.wc-block-checkout input[type="text"]:focus,
.wc-block-checkout input[type="email"]:focus,
.wc-block-checkout input[type="tel"]:focus,
.wc-block-checkout input[type="password"]:focus,
.wc-block-checkout input[type="number"]:focus,
.wc-block-checkout textarea:focus,
.wc-block-checkout select:focus,
.wp-block-woocommerce-checkout input[type="text"]:focus,
.wp-block-woocommerce-checkout input[type="email"]:focus,
.wp-block-woocommerce-checkout input[type="tel"]:focus,
.wp-block-woocommerce-checkout input[type="password"]:focus,
.wp-block-woocommerce-checkout input[type="number"]:focus,
.wp-block-woocommerce-checkout textarea:focus,
.wp-block-woocommerce-checkout select:focus,
.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper textarea:focus,
.woocommerce-input-wrapper select:focus,
.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus,
.wc-block-components-select input:focus,
.wc-block-components-select select:focus {
    outline: none;
    border-color: #3D563B;
    box-shadow: 0 0 0 2px rgba(61, 86, 59, 0.1);
    background: #F6F3E5;
}

.woocommerce-checkout input[type="text"]:not(:placeholder-shown),
.woocommerce-checkout input[type="email"]:not(:placeholder-shown),
.woocommerce-checkout input[type="tel"]:not(:placeholder-shown),
.woocommerce-checkout input[type="password"]:not(:placeholder-shown),
.woocommerce-checkout input[type="number"]:not(:placeholder-shown),
.woocommerce-checkout textarea:not(:placeholder-shown),
.wc-block-checkout input[type="text"]:not(:placeholder-shown),
.wc-block-checkout input[type="email"]:not(:placeholder-shown),
.wc-block-checkout input[type="tel"]:not(:placeholder-shown),
.wc-block-checkout input[type="password"]:not(:placeholder-shown),
.wc-block-checkout input[type="number"]:not(:placeholder-shown),
.wc-block-checkout textarea:not(:placeholder-shown),
.wp-block-woocommerce-checkout input[type="text"]:not(:placeholder-shown),
.wp-block-woocommerce-checkout input[type="email"]:not(:placeholder-shown),
.wp-block-woocommerce-checkout input[type="tel"]:not(:placeholder-shown),
.wp-block-woocommerce-checkout input[type="password"]:not(:placeholder-shown),
.wp-block-woocommerce-checkout input[type="number"]:not(:placeholder-shown),
.wp-block-woocommerce-checkout textarea:not(:placeholder-shown),
.woocommerce-input-wrapper input:not(:placeholder-shown),
.woocommerce-input-wrapper textarea:not(:placeholder-shown),
.wc-block-components-text-input input:not(:placeholder-shown),
.wc-block-components-text-input textarea:not(:placeholder-shown) {
    background: #F6F3E5;
    color: #3D563B;
}

/* WooCommerce Checkout Labels */
.woocommerce-checkout label,
.wc-block-checkout label,
.wp-block-woocommerce-checkout label,
.wc-block-components-text-input label,
.wc-block-components-select label {
    color: #3D563B;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: block;
}

/* WooCommerce Checkout Required Field Indicator */
.woocommerce-checkout .required,
.wc-block-checkout .required,
.wp-block-woocommerce-checkout .required {
    color: #d63638;
}

/* WooCommerce Checkout Select Dropdown */
.woocommerce-checkout select,
.wc-block-checkout select,
.wp-block-woocommerce-checkout select,
.wc-block-components-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233D563B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    cursor: pointer;
}
.elementor-widget-image a img[src$=".svg"] {
  width:100% !important;
}
/* Mobiilil peida menüüpunktide tekstid "Töölaud" ja "Sisene" */
@media (max-width: 767px) {
    .elementor-icon-list-text.updated {
        display: none !important;
    }
    /* Sisene – JS lisab klassi .lihapood-mobile-hide-text teksti "SISENE" elementidele */
    .elementor-icon-list-text.lihapood-mobile-hide-text {
        display: none !important;
    }
	.lihapood-filter-item-wrapper {
  flex-direction: unset !important;
}
.lihapood-filter-item-wrapper {
  padding-left: 42px !important;
}
}



/* Mobiilil: hinnang – grid, "1 arvustus" üleval, tärnid all; #ratings height auto */
@media (max-width: 767px) {
    .lihapood-product-rating-display {
        display: grid !important;
        grid-template-rows: auto auto;
        gap: 0.25rem;
    }
    .lihapood-product-rating-display > *:first-child {
        order: 2;
    }
    .lihapood-product-rating-display > *:last-child {
        order: 1;
    }
    #ratings {
        height: auto;
    }
}

/* Kui tootel pole lingitud tootjat, tootja-link ei kuvata */
.tootja-link.lihapood-tootja-link-hidden {
    display: none !important;
}

/* Brand placeholder: kui tootel pole brändi, jäta sama kõrgune tühi rida (tootekaardid joondatud) */
.tootja-link.lihapood-brand-placeholder,
.lihapood-brand-placeholder.tootja-link {
    display: block;
    min-height: 1.2em;
    color: transparent;
    pointer-events: none;
    text-decoration: none;
    cursor: default;
}
.tootja-link.lihapood-brand-placeholder a,
.lihapood-brand-placeholder.tootja-link a {
    color: transparent;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

/* Sisselogitud kasutajatele peidetakse registreerumise/LOGIN-soovituse elemendid */
body.logged-in #hide-reg,
body.logged-in .hide-reg {
    display: none !important;
}

/* Mobiilil: menüü ikon ja link kõrvuti (ikon vasakul, tekst paremal) */
@media (max-width: 1024px) {
   .elementor-625 .elementor-element.elementor-element-809c7b7 .elementor-nav-menu--main .elementor-item {
  display: flex !important;
   --e-nav-menu-horizontal-menu-item-margin: calc(0px / 1 ) !important;
}.elementor-585 .elementor-element.elementor-element-694c292 .elementor-nav-menu--main .elementor-item {
  display: flex !important;
   --e-nav-menu-horizontal-menu-item-margin: calc(0px / 1 ) !important;
}
  .elementor-655 .elementor-element.elementor-element-63da7a1 .elementor-nav-menu--main .elementor-item {
	display: flex !important;
	 --e-nav-menu-horizontal-menu-item-margin: calc(0px / 1 ) !important;
}
.elementor-604 .elementor-element.elementor-element-aeb2e42 .elementor-nav-menu--main .elementor-item {
  display: flex !important;
   --e-nav-menu-horizontal-menu-item-margin: calc(0px / 1 ) !important;
}
.menu-item-icon {
  margin-right: 20px !important;
}
.elementor-nav-menu__align-center .elementor-nav-menu {
  justify-content: left !important;
}
.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li {
  width: 100% !important;
}
}

/* Product grid / loop card alignment
   Hoia pealkiri, rating, tootja ja maht ridadena sama kõrgusega,
   et hind + "Lisa korvi" rida oleks kõigil kaartidel ühel joonel. */
.lihapood-product-grid .woocommerce-loop-product__title,
.lihapood-product-grid .product_title.entry-title {
    min-height: 2.6em;
}

.lihapood-product-grid #ratings {
    min-height: 32px;
}

.lihapood-product-grid #brand {
    min-height: 18px;
}

/* Volume (maht) tekst [product_maht] – widget ID elementor-element-42260412 */
.lihapood-product-grid .elementor-element-42260412 .elementor-widget-container {
    min-height: 32px;
}

/* Elementor Loop Item #247 – kogu kaardi wrapper täiskõrguses, nupp alati all servas */
.lihapood-product-grid .elementor-247 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Ala, kus on maht + hind + kogus + "Lisa korvi" – suru kaardi põhja */
.lihapood-product-grid .elementor-247 .elementor-element-7288ac60 {
    margin-top: auto;
}

