/**
* Off Canvas
* 
* styles for off canvas panel
*/

.off-canvas {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100vw;
    height: 100vh;
    transition: transform 0.5s ease-in-out;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.off-canvas.toggled {
    transform: translateX(-100%);
}

.off-canvas__inner {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 2;
    overflow-y: auto;
    pointer-events: auto;
}

.off-canvas__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.off-canvas__backdrop.toggled {
    opacity: 1;
    pointer-events: auto;
}

body.offcanvas-locked {
  overflow: hidden; 
}

#header_cart_panel .off-canvas__inner {
    background-color: #eee;
}

.js-cart-total {
    color: #FFF !important;
}

.header ul {
    margin: 0;
}

@media screen and (min-width: 1024px) and (max-width: 1280px) {
    .header__search .wc-pillsrch {
        width: 90%;
    }
}

#top-menu li a {
    font-weight: 500;
}

#jc-mini-cart .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 9999px;
    overflow: hidden;
}

#jc-mini-cart .quantity input[type="number"] {
    border: none;
    text-align: center;
    width: 50px;
    padding: 6px 8px;
    font-size: 14px;
    margin: 0;
}

/* Remove arrows in Chrome, Safari, Edge */
#jc-mini-cart .quantity input[type="number"]::-webkit-outer-spin-button,
#jc-mini-cart .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#jc-mini-cart .quantity input[type="number"]:focus {
    outline: none;
}

#jc-mini-cart .quantity .minus,
#jc-mini-cart .quantity .plus {
    background: none;
    border: none;
    padding: 6px 1rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    color: #333;
    transition: background-color 0.2s;
}

#jc-mini-cart .quantity .minus:hover,
#jc-mini-cart .quantity .plus:hover {
    background-color: #f5f5f5;
}

#jc-mini-cart .quantity .minus:active,
#jc-mini-cart .quantity .plus:active {
    background-color: #e5e5e5;
}

#jc-mini-cart .quantity .minus {
    border-right: 1px solid #ddd;
}

#jc-mini-cart .quantity .plus {
    border-left: 1px solid #ddd;
}

@media screen and (min-width: 1024px) {
    #jc-mini-cart {
        height: calc(100dvh - 4rem) !important;
    }
}

.wc-pillsrch {
  position: relative;
  display: flex; 
  align-items: center; 
  gap: 8px;
  background: #fff; 
  color: #111;
  border: 1px solid #e5e7eb; 
  border-radius: 9999px;
  padding: 6px 6px 6px 14px; 
  width: 100%;
  box-sizing: border-box;
}
.wc-pillsrch__input { flex:1 1 auto; border:0; background:transparent; min-height:32px; font-size:clamp(16px,2.2vw,18px); outline:none; }
.wc-pillsrch__btn { width:32px; height:32px; border-radius:9999px; border:0; display:inline-flex; align-items:center; justify-content:center; background:#111; color:#fff; cursor:pointer; }
.wc-pillsrch:focus-within { box-shadow:0 0 0 3px rgba(0,0,0,.08); border-color:#111; }

/* Dropdown */
.wc-ajaxsrch { 
  position: absolute; left:0; right:0; top: calc(100% + 8px);
  background:#fff; border:1px solid #e5e7eb; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  max-height: 60vh; overflow:auto; z-index: 60; display:none;
}
.wc-ajaxsrch__loading,
.wc-ajaxsrch__empty { padding:14px 16px; font-size:14px; color:#555; }

.wc-ajaxsrch__list { list-style:none; margin:0; padding:6px; }
.wc-ajaxsrch__item { border-radius: 10px; }
.wc-ajaxsrch__item[aria-selected="true"],
.wc-ajaxsrch__item:hover { background:#f7f7f7; }

.wc-ajaxsrch__link { display:flex; gap:12px; align-items:center; padding:10px; text-decoration:none; color:inherit; }
.wc-ajaxsrch__thumb { width:44px; height:44px; object-fit:cover; border-radius:8px; background:#fafafa; }
.wc-ajaxsrch__meta { display:flex; flex-direction:column; gap:2px; min-width:0; }
.wc-ajaxsrch__title { font-size:15px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wc-ajaxsrch__price { font-size:14px; color:#111; opacity:.9; }
.wc-ajaxsrch__more { border-top:1px solid #eee; padding:10px 12px; text-align:center; }
.wc-ajaxsrch__more a { text-decoration:none; font-weight:600; }

.button-coupon {
    background-color: rgba(255, 99, 99, 0.5);
    border: none;
}

.popup { position: fixed; inset: 0; display: none; z-index: 9999; }
.popup.is-open { display: block; }

/* Backdrop */
.popup__backdrop {
    position: absolute; 
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0; transition: opacity .18s ease;
}
.popup.is-open .popup__backdrop { opacity: 1; }

/* Dialog */
.popup__dialog {
    position: absolute; 
    left: 50%; 
    top: 50%;
    transform: translate(-50%,-50%) scale(.98);
    width: min(90vw, 32rem); 
    max-height: 60vh;
    overflow: auto;
    background: #fff; border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    opacity: 0; 
    transition: opacity .18s ease, transform .18s ease;
}
.popup.is-open .popup__dialog {
    opacity: 1; 
    transform: translate(-50%,-50%) scale(1);
}

body.popup-open { overflow: hidden; }

.coupon-card {
    min-height: 10rem;
    border-radius: 1rem;
    overflow: hidden;
    border-left: none;
}

.coupon-code {
    background-color: #ff3b301f;
}

.coupon-dot {
    width: 10px;
    height: 10px;
}

.js-popup-close {
    box-shadow: none;
}

@media screen and (min-width: 768px) {
    #header_cart_panel .off-canvas__inner {
        width: 60% !important;
    }
}


@media screen and (min-width: 960px) {
    #header_cart_panel .off-canvas__inner {
        width: 50% !important;
    }
}

@media screen and (min-width: 1280px) {
    #header_cart_panel .off-canvas__inner {
        width: 40% !important;
    }
}

@media screen and (min-width: 1536px) {
    #header_cart_panel .off-canvas__inner {
        width: 30% !important;
    }
}

@media screen and (min-width: 1921px) {
    #header_cart_panel .off-canvas__inner {
        width: 25% !important;
    }
}

.woocommerce-breadcrumb {
    color: #333;
    font-weight: 600;
}

.products li.product { 
    transition: box-shadow .15s ease, transform .15s ease; 
}

.products li.product:hover { 
    box-shadow: 0 8px 24px rgba(0,0,0,.08); 
    transform: translateY(-1px);
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce ul.products::before {
    display: none !important;
}

.woocommerce ul.products li.product a img {
    margin: 0 !important;
}

.woocommerce ul.products li.product .button {
    margin-top: .25rem !important;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    padding: 0.5rem !important;
}

.woocommerce ul.products li.product .price,
.price bdi {
    font-size: 14px !important;
    color: #222 !important;
    font-weight: 500 !important;
}

.woocommerce ul.products li.product .button {
    background-color: #B60108 !important;
    color: #FFF !important;
}

.select-wrapper {
    position: relative;
    display: inline-block;
}

.shop-order-dropdown {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background: none; 
}

.select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.65rem;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  /* black arrow; change %23333 to another hex if needed */
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 9l6 6l6 -6" /></svg>');
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button {
    border-radius: .5rem !important;
}

.container .wc-block-cart__submit-button,
.jc-checkout-actions .wc-block-components-checkout-place-order-button {
    background-color: #B60108 !important;
    border-radius: .5rem;
    font-weight: 600;
    color: #FFF !important;
    border: none;
}

#page .wp-block-woocommerce-checkout {
    margin: 0 auto;
}

.jc-checkout-pickup-location .wc-block-components-radio-control__description {
    display: flex !important;
    align-items: center !important;
    color: #333 !important;
    font-weight: 500 !important;
}

.jc-checkout-pickup-location .wc-block-checkout__pickup-options .wc-block-components-local-pickup-rates-control .wc-block-components-radio-control__description>svg, .wp-block-woocommerce-checkout-pickup-options-block .wc-block-components-local-pickup-rates-control .wc-block-components-radio-control__description>svg {
    margin-top: -2px !important;
    margin-right: 2px;
}