/* --- MOBILE MENU STYLES --- */
.mm-listitem {
    align-items: center;
}

.mm-listitem:last-child {
    border-color: white !important;    
    padding-bottom: 0 !important;
}

.header__action--promo {
    display: none;   
}

.mm-listitem img {
    height: 24px !important;
    width: 24px !important;
    margin-right: 4.5rem;
}

.mm-listitem__text {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
}

.mobile-menu__root.mm-listview > li.mobile-menu__menu-item > a.mm-listitem__text {
    color: #1f2937 !important;    
}

.mm-listitem__text svg {
    margin-right: 4.5rem; 
    color: #1f2937 !important;
}

.mm-listitem--opened>.mm-listitem__btn:after {
    transform: rotate(45deg) !important;    
    transition: transform 0.3s ease;
}

.mm-btn--next:after {
    transform: rotate(225deg) !important;  
    transition: transform 0.3s ease;
    border-color: #6b7280 !important;
    border-width: 2px !important;
}

.mm-btn:after {
    --mm-color-icon: rgba(0, 0, 0, 1) !important;    
}

.mm-listitem:first-child {
    padding-top: 0 !important;    
}

/*.menu-mobile__item:first-child a {*/
/* font-size: 14px;*/
/* font-weight: 700;*/
/* padding-left: 0;*/
/* color: #0E114A !important;*/
/*}*/

.menu-mobile__item a {
    font-size: 13px;
    font-weight: 500;
    padding-left: 1.5rem;
    text-transform: capitalize !important;
    color: #1f2937 !important;
}

.mobile-menu .mobile-menu-user svg {
    width: 32px;
    height: 32px;
}

#mobile_menu_item_title {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #e5e7eb;
    font-size: 17px;
    font-weight: 700;
    color: #0E114A;
}

.mobile-menu-icons-container a:last-of-type {
    display: none;    
}

.mobile-menu .mm-navbar>.mobile-menu-footer {
    padding: 1rem !important;
    background: linear-gradient(45deg, #ef4444, #B76E79);
    justify-content: center !important;
}

.mobile-menu-icons-container a:first-of-type {
    align-items: center;
    justify-content: center;
    gap: 1rem !important; 
    color: white !important;
}

.mobile-menu-icons-container a:first-of-type div {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 22px;
}

.mobile-menu-icons-container a:first-of-type div span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 22px;
}

.mm-menu--position-right {
    width: 100% !important;  
    padding: 0 1rem;
}

.mm-listitem--opened .mm-btn--next {
    color: #03B0AC !important;
}

.mm-listitem--opened .mm-btn--next img {
    filter: brightness(0) saturate(100%) invert(68%) sepia(53%) saturate(6278%) hue-rotate(142deg) brightness(99%) contrast(98%);
}

:root {
    --mm-size: 100% !important;
    --mm-max-size: 100% !important;
}

.mm-navbar {
    min-height: 65px !important;    
}

.mm-navbar__title {
    justify-content: flex-start !important;    
}

.mm-navbar__title>span {
    color: #0E114A;
    font-weight: 700;
    font-size: 18px;
}

.mm-btn.mm-hidden+.mm-navbar__title:not(:last-child) {
    padding-left: 1.5rem !important;    
}

.mm-btn--close:before {
    height: 7px !important;
    width: 7px !important;
    border-color: #6b7280 !important;
    right: 15px !important;
    border-width: 3px !important;
}

.mm-btn--close:after {
    height: 7px !important;  
    width: 7px !important;
    border-color: #6b7280 !important;
    border-width: 3px !important;
}

.mm-listitem--opened>.mm-listitem__btn:after {
    right: 1.5rem !important;    
}

.mm-listitem--opened>.mm-panel {
    background-color: #f3f4f6 !important;    
}

.mm-listitem--opened>.mm-listitem__btn {
    background-color: #f3f4f6 !important;  
    /*padding-left: 2px!important;*/
    /*border-left: 2px solid #03B0AC!important;*/
}

.mm-panels .mm-listitem__btn:not(.mm-listitem__text) {
    padding-left: 0px;
    right: 32px;
    max-height: 1rem;
}

.menu-mobile__item.mm-listitem--opened > .mm-listitem__text {
    color: #03B0AC !important;
    text-decoration: underline;
}

.menu-mobile__item.mm-listitem--opened > .mm-btn--next {
    border-left: 2px solid #03B0AC !important;
    padding: 6px 30px 6px 10px !important
}

.mm-listitem--vertical>.mm-panel {
    padding: 10px 0 10px 1.5rem !important;    
}

.menu-mobile__item.mm-listitem--opened > .mm-panel--opened .menu-mobile__item.mm-listitem a {
    color: #1f2937 !important;
    padding-left: 1rem;
    font-weight: 500;
    font-size: 14px;
}

#mobile_menu_item_100087347 svg {
    margin-right: 1rem;
    color: #6b7280;
}

#mobile_menu_item_100087347 a {
    padding: 1rem 1.5rem;
    border-bottom: 8px solid #f3f4f6;
    font-size: 17px;
    font-weight: 600;
}

/* --- CART MODAL & DRAWER STYLES --- */

@media (min-width: 576px) {
    .cart-modal .modal-items__table-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.last-item-wrapper {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 2fr;
}
.last-item-wrapper-left .modal-items__image {
    width: 100%;
}

.last-item-wrapper-right .modal-items__item-name {
    text-decoration: none;
    color: black;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    display: block;
}

.last-item-wrapper-right .modal-items__options {
    margin-bottom: 1rem;
}

.last-item-wrapper-right .last-item-prices .last-item-price {
    font-size: 1.375rem;
    color: red;
    font-weight: 600;
    margin-right: 1rem;
}

.last-item-wrapper-right .last-item-prices .last-item-old-price {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through;
}

.last-item-wrapper-left .last-item-badge {
    z-index: 1;
    display: flex;
    position: absolute;
    color: white;
    background-color: red;
    border-radius: 5px;
    font-size: .875rem;
    font-weight: 600;
    padding: 3px .65em;
}
.last-item-wrapper-left img {
    border-radius: 5px;
}

.last-item-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.last-item-wrapper-right .last-item-actions .last-item-modal-custom {
    padding: 5px 40px;    
}

@media (max-width: 500px) {
    .last-item-wrapper {
        grid-template-columns: 1fr;
    }
    .last-item-wrapper-right .last-item-actions .last-item-modal-custom {
        padding: 5px 20px;    
    }
}

.custom-related-products {
    margin-top: 0 !important;
    border: 0px solid #e9ecef!important;
    padding: 0!important;
}
.cart-drawer-totals__item.cart-drawer-totals__item--shipping {
    display: none;     
}

.cart-drawer-totals {
    padding: 0 !important;     
}
.cart-drawer-totals__item {
    padding: .2rem 0 !important;     
}

.cart-drawer-totals__item.cart-drawer-totals__item--subtotal.cutom-drawer {
    border-top: 1px solid #d0d0d0 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    padding-top: 1rem !important;     
}
.cart-drawer-totals__item.cart-drawer-totals__item--discount.custom-drawer .cart-drawer-totals__item-value {
    color: red;
}
.cart-drawer__empty-button.btn.btn-outline-primary {
    border: 1px solid #b76e79;
    margin-bottom: 1.5rem;     
}
.cart-drawer__action.cart-drawer__action--back.btn.btn-primary {
    margin-bottom: 0;     
}

.cart-drawer * {
    border: none;     
}
.cart-drawer__actions .btn.btn-primary {
    width: 100%;  
}
@media (max-width: 768px) {
    .cart-drawer__empty {
        padding: 1rem;
    }

    .offcanvas-title {
        margin-top: 0 !important;
    }
    .offcanvas-title h2 {
        margin-bottom: 0 !important;
    }
    .offcanvas-body {
        padding: 0;  
        min-height: 200px;
    }
    .cart-drawer-totals {
        margin-top: 0 !important;     
    }
    .cart-drawer__action.cart-drawer__action--back.btn.btn-primary,
    .cart-drawer__empty-button.btn.btn-outline-primary {
        height: 45px;     
    }
    .cart-drawer-totals__item.cart-drawer-totals__item--subtotal.cutom-drawer {
        font-size: 1rem !important;
        padding-top: .45rem !important;
    }
    .cart-drawer__totals-container .coupon-code__input.form-control,
    .cart-drawer__totals-container .coupon-code__button.btn.btn-outline-primary {
        height: 45px !important;
    }
    .cart-drawer__totals-container .coupon-code__input.form-control+label {
        margin-top: 26px !important;
    }
    .drawer-items__table-wrapper {
        padding: .5rem;     
    }
    
    .offcanvas-content:has(.cart-drawer) {
        overflow: scroll;     
    }
    .offcanvas-bottom, .offcanvas-top {
    height: 100%;
    max-height: 85vh;
    }
}
.offcanvas-header {
    padding: 0.3rem 1rem;
}
.slider-image__image {
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 0.2rem;

}
.product--slider {
    padding: 0.1rem;
    border-radius: 0.3rem;
}
/* ===== Desktop: zona produse mai inalta + tot continutul de sub header pe scroll ===== */
@media (min-width: 769px) {
    /* Tot continutul drawer-ului scroleaza ca un singur bloc */
    .offcanvas-content:has(.cart-drawer) {
        overflow-y: auto;
    }
    /* Header-ul ramane fixat sus in timpul scroll-ului */
    .offcanvas-content:has(.cart-drawer) .offcanvas-header {
        position: sticky;
        top: 0;
        z-index: 3;
        background: #fff;
    }
    /* Zona produselor: mai inalta, dar fara scroll propriu (scroleaza tot blocul) */
    .offcanvas-content:has(.cart-drawer) .offcanvas-body {
        flex: 0 0 auto;
        overflow: visible;
        min-height: 200px;
    }
    /* Footer-ul (totaluri, cupon, butoane, recomandari) curge in acelasi scroll */
    .offcanvas-content:has(.cart-drawer) .offcanvas-footer {
        flex: 0 0 auto;
    }
}
/* ===== Cupon: ascuns implicit, doar toggle vizibil si centrat ===== */
.coupon-code__form-container.collapse:not(.show) {
    display: none;
}
.coupon-code__toggle {
    display: block;
    width: 100%;
    text-align: center;
    cursor: pointer;
}
/* ===== Bara livrare gratuita (cart drawer) ===== */
.free-shipping-bar {
    margin: 0.75rem 0 0.25rem;
    padding: 0.7rem 0.85rem;
    background: #F0D2C5;
    border-radius: 0.5rem;
}
.free-shipping-bar__text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.55rem;
    color: #000;
}
.free-shipping-bar__text strong {
    font-weight: 600;
}
.free-shipping-bar__text--reached {
    color: #2e7d32;
}
.free-shipping-bar__track {
    height: 6px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    overflow: hidden;
}
.free-shipping-bar__fill {
    height: 100%;
    background: #B76E79;
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Caraielli video hero: isolated from the rest of the storefront. */
.cr-hero-video {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #364540;
    background-size: cover;
    background-position: center;
    color: #fff;
    font-family: "Source Sans Pro", sans-serif;
}
.cr-hero-video,
.cr-hero-video * { box-sizing: border-box; }
.cr-hero-video__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    opacity: 0;
}
.cr-hero-video.is-playing .cr-hero-video__media { opacity: 1; }
.cr-hero-video__media::-webkit-media-controls { display: none !important; }
.cr-hero-video__content {
    position: absolute;
    inset: auto 0 0;
    padding: 64px 20px clamp(24px, 4vw, 64px);
    text-align: center;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    pointer-events: none;
}
.cr-hero-video .cr-hero-video__title {
    margin: 0 auto 16px;
    max-width: 1100px;
    font-family: "League Spartan", sans-serif;
    font-size: clamp(28px, 4.5vw, 72px);
    line-height: 1.08;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 2px 4px rgba(0,0,0,.65);
}
.cr-hero-video .cr-hero-video__description {
    max-width: 580px;
    margin: 0 auto 24px;
    font-size: clamp(15px, 1.3vw, 20px);
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.65);
}
.cr-hero-video .cr-hero-video__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: 12px 28px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: auto;
}
.cr-hero-video__button:hover { background: rgba(0,0,0,.65); }
.cr-hero-video__button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.cr-hero-video__mobile { display: none; }
@media (max-width: 767px) {
    .cr-hero-video {
        /* 80% of the original portrait height; crop only the top. */
        aspect-ratio: 45 / 64;
        background-position: center bottom;
    }
    .cr-hero-video__media {
        position: absolute;
        inset: 0;
        object-position: center bottom;
    }
    .cr-hero-video__desktop { display: none; }
    .cr-hero-video__mobile { display: inline; }
    .cr-hero-video__content { padding: 56px 20px max(28px, env(safe-area-inset-bottom)); }
    .cr-hero-video .cr-hero-video__title { font-size: clamp(26px, 7vw, 46px); }
    .cr-hero-video .cr-hero-video__description { font-size: 16px; margin-bottom: 20px; }
    .cr-hero-video .cr-hero-video__button { font-size: 15px; padding: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .cr-hero-video .cr-hero-video__media { opacity: 0; }
}

/* New-product badge and standalone category navigation. */
.list-image__badges .list-image__badge--new,
.grid-image__badges .grid-image__badge--new,
.product-summary__image-badges .product-summary__badge--new {
    background-color: #9E5965;
    color: #fff;
}
.cr-categories {
    box-sizing: border-box;
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 64px 0.3rem;
    font-family: "Source Sans Pro", sans-serif;
}
.cr-categories * { box-sizing: border-box; }

/* Category-card sizes: show every available size as a separate link. */
[data-section-id="products_catalog"] .product__attributes > input[data-input-expand][id$="_9"] {
    display: none;
}
[data-section-id="products_catalog"] .product__attributes .product__attribute[for$="_9"] {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    justify-content: safe center;
    gap: 3px;
    width: 100%;
    margin: 6px 0 0;
    padding: 18px 3px 3px;
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: clip;
    cursor: default;
}
[data-section-id="products_catalog"] .product__attribute[for$="_9"] .product__attribute-name {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    text-align: center;
    color: #76706d;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .06em;
    text-transform: uppercase;
}
[data-section-id="products_catalog"] .product__attribute[for$="_9"] .product__attribute-name::after {
    content: none;
}
[data-section-id="products_catalog"] .product__attribute[for$="_9"] .product__attribute-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 20.4px;
    width: 20.4px;
    min-width: 20.4px;
    height: 20.4px;
    min-height: 20.4px;
    padding: 0;
    border: 1px solid #e5ddd9;
    border-radius: 4px;
    background: #fff;
    color: #4a4140;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}
[data-section-id="products_catalog"] .product__attribute[for$="_9"] .product__attribute-link:hover {
    background: #9E5965;
    border-color: #9E5965;
    color: #fff;
    text-decoration: none;
}
[data-section-id="products_catalog"] .product__attribute[for$="_9"] .product__attribute-link:focus-visible {
    outline: 2px solid #9E5965;
    outline-offset: 2px;
}
.product__attributes .product__attribute-link--unavailable,
[data-section-id="products_catalog"] .product__attribute[for$="_9"] .product__attribute-link--unavailable,
[data-section-id="products_catalog"] .product__attribute[for$="_9"] .product__attribute-link--unavailable:hover {
    color: #9c9693;
    background: #f7f4f2;
    border-color: #e8e2df;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    cursor: default;
}
.product__attribute-stock-note {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 767px) {
    [data-section-id="products_catalog"] .product__attribute[for$="_9"] .product__attribute-link {
        flex-basis: 21.6px;
        width: 21.6px;
        min-width: 21.6px;
        height: 21.6px;
        min-height: 21.6px;
    }
}
@media (prefers-reduced-motion: reduce) {
    [data-section-id="products_catalog"] .product__attribute[for$="_9"] .product__attribute-link {
        transition: none;
    }
}
.cr-categories__list {
    display: flex;
    overflow-x: auto;
    padding: 4px 0 16px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.cr-categories__list::-webkit-scrollbar { display: none; }
.cr-categories__item {
    display: block;
    flex: 0 0 128px;
    min-width: 0;
    color: #364540;
    text-align: center;
    text-decoration: none;
}
.cr-categories__image {
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto 8px;
    padding: 4px;
    overflow: hidden;
    border: 2px solid rgba(229,231,235,.5);
    border-radius: 50%;
    transition: border-color .3s;
}
.cr-categories__image img,
.cr-categories__symbol {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform .3s;
}
.cr-categories__symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9E5965;
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 24px;
}
.cr-categories .cr-categories__name {
    margin: 0;
    font-family: "League Spartan", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
    transition: color .3s;
}
.cr-categories__item:hover { color: #B76E79; text-decoration: none; }
.cr-categories__item:hover .cr-categories__image { border-color: #B76E79; }
.cr-categories__item:hover img,
.cr-categories__item:hover .cr-categories__symbol { transform: scale(1.1); }
.cr-categories__item:focus-visible { outline: 2px solid #9E5965; outline-offset: -2px; border-radius: 4px; }
@media (min-width: 1024px) {
    .cr-categories__list { overflow: visible; gap: 16px; }
    .cr-categories__item { flex: 1 1 0; }
    .cr-categories__image { width: 100%; height: auto; aspect-ratio: 1; }
    .cr-categories__symbol { aspect-ratio: 1; height: auto; font-size: clamp(12px, 1.5vw, 24px); }
}
@media (prefers-reduced-motion: reduce) {
    .cr-categories__list { scroll-behavior: auto; }
    .cr-categories * { transition: none; }
}
