

:root{
  --fw-card-radius: 12px;
  --fw-border: var(--tt-border-color, rgba(255,255,255,0.12));
  --fw-bg: var(--tt-bg-color, #0b0f14);
  --fw-panel: color-mix(in srgb, var(--fw-bg) 92%, #ffffff 8%);
  --fw-panel2: color-mix(in srgb, var(--fw-bg) 86%, #ffffff 14%);
  --fw-text: var(--tt-text-color, #e6edf3);
  --fw-muted: var(--tt-text-muted-color, rgba(230,237,243,0.72));
  --fw-accent: var(--tt-main-color, #10A37F);
}


.fw-currency-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}

.fw-currency-label{
  font-size: 14px;
  color: var(--fw-muted);
}

.fw-currency-select,
#fwCartCurrencySelect{
  appearance:none;
  background: var(--fw-panel);
  border: 1px solid var(--fw-border);
  color: var(--fw-text);
  padding: 8px 34px 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  position: relative;
}

.fw-currency-select:focus,
#fwCartCurrencySelect:focus{
  outline: none;
  border-color: color-mix(in srgb, var(--fw-accent) 60%, var(--fw-border) 40%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fw-accent) 22%, transparent 78%);
}


.fw-currency-wrap{
  position: relative;
}


#fwCollectionList{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.fw-collection-pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--fw-border);
  background: var(--fw-panel);
  color: var(--fw-text);
  text-decoration:none;
  font-size: 14px;
  line-height:1;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.fw-collection-pill:hover{
  transform: translateY(-1px);
  background: var(--fw-panel2);
}

.fw-collection-pill.is-active{
  border-color: color-mix(in srgb, var(--fw-accent) 60%, var(--fw-border) 40%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fw-accent) 18%, transparent 82%);
}


#fwProductGrid{
  
}

.fw-card{
  border: 1px solid var(--fw-border);
  background: var(--fw-panel);
  border-radius: var(--fw-card-radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.fw-card-link{
  display:block;
  color: inherit;
  text-decoration:none;
}

.fw-card-media{
  aspect-ratio: 1 / 1;
  background: var(--fw-panel2);
  overflow:hidden;
}

.fw-card-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.fw-media-fallback{
  width:100%;
  height:100%;
  background: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--fw-panel2) 80%, #000 20%),
    color-mix(in srgb, var(--fw-panel2) 80%, #000 20%) 12px,
    color-mix(in srgb, var(--fw-panel2) 90%, #fff 10%) 12px,
    color-mix(in srgb, var(--fw-panel2) 90%, #fff 10%) 24px
  );
}

.fw-card-body{
  padding: 14px 14px 10px;
}

.fw-card-title{
  font-size: 16px;
  font-weight: 600;
  color: var(--fw-text);
  margin: 0 0 6px;
}

.fw-card-sub{
  font-size: 14px;
  color: var(--fw-muted);
}

.fw-card-actions{
  padding: 0 14px 14px;
  margin-top:auto;
}

.fw-add-btn.is-loading{
  opacity: 0.75;
  pointer-events:none;
}


#fw-cart-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 9998;
}

#fw-cart-backdrop.is-open{
  opacity: 1;
  pointer-events: auto;
}

#fw-cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 94vw);
  height: 100vh;
  background: var(--fw-bg);
  border-left: 0px solid var(--fw-border);
  transform: translateX(105%);
  transition: transform .22s ease;
  z-index: 9999;
  display:flex;
  flex-direction:column;
}

#fw-cart-drawer.is-open{
  transform: translateX(0);
}

.fw-cart-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 0px solid var(--fw-border);
  background: color-mix(in srgb, var(--fw-bg) 96%, #fff 4%);
  position: sticky;
  top: 0;
  z-index: 2;
}

.fw-cart-title{
  font-size: 18px;
  font-weight: 700;
  color: var(--fw-text);
}

.fw-cart-head-right{
  display:flex;
  align-items:center;
  gap: 10px;
}

#fw-cart-close{
  display:inline-flex;
  width: 34px;
  height: 34px;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  border: 1px solid var(--fw-border);
  background: var(--fw-panel);
  color: var(--fw-text);
  text-decoration:none;
  line-height: 1;
  font-size: 18px;
}

#fw-cart-close:hover{
  background: var(--fw-panel2);
}

#fw-cart-items{
  padding: 16px;
  overflow:auto;
  flex: 1;
}

.fw-cart-item{
  display:flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--fw-border);
  background: var(--fw-panel);
  border-radius: 14px;
  margin-bottom: 12px;
}

.fw-cart-item-media{
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow:hidden;
  background: var(--fw-panel2);
  flex: 0 0 auto;
}
.fw-cart-item-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.fw-cart-thumb-fallback{
  width:100%;
  height:100%;
  background: var(--fw-panel2);
}

.fw-cart-item-body{
  flex: 1 1 auto;
  min-width: 0;
}

.fw-cart-item-title{
  font-weight: 700;
  color: var(--fw-text);
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fw-cart-item-variant{
  font-size: 13px;
  color: var(--fw-muted);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}

.fw-cart-item-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.fw-cart-item-price{
  font-weight: 700;
  color: var(--fw-text);
  font-size: 14px;
}

.fw-cart-qty{
  display:inline-flex;
  align-items:center;
  border: 1px solid var(--fw-border);
  background: var(--fw-panel2);
  border-radius: 999px;
  overflow:hidden;
  color: #f3f3f3 !important;
}

.fw-cart-qty-btn{
  border: none;
  background: transparent;
  color: var(--fw-text);
  width: 34px;
  height: 30px;
  cursor:pointer;
}
.fw-cart-qty-btn:hover{
  background: color-mix(in srgb, var(--fw-panel2) 80%, #fff 20%);
}
.fw-cart-qty-val{
  min-width: 26px;
  text-align:center;
  font-size: 13px;
  color: var(--fw-text);
}

.fw-cart-item-actions{
  display:flex;
  gap: 12px;
  margin-top: 10px;
}

.fw-cart-remove{
  display:inline-flex;
  align-items:center;
  border: 1px solid var(--fw-border);
  background: var(--fw-panel2);
  border-radius: 999px;
  overflow:hidden;
  color: #f3f3f3 !important;
}

.fw-cart-view{
  color: var(--fw-muted);
  text-decoration: underline;
  font-size: 13px;
}

.fw-cart-foot{
  padding: 14px 16px 16px;
  border-top: 0px solid var(--fw-border);
  background: color-mix(in srgb, var(--fw-bg) 96%, #fff 4%);
}

#fw-cart-checkout.is-disabled{
  opacity: 0.6;
  pointer-events:none;
}


#fw-cart-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fw-accent) 20%, transparent 80%);
  border: 1px solid color-mix(in srgb, var(--fw-accent) 35%, var(--fw-border) 65%);
  color: #121212;
  font-size: 12px;
  line-height: 1;
}


html.fw-cart-open, html.fw-cart-open body{
  overflow:hidden;
}

.fw-cart-empty{ padding: 16px; color: var(--fw-muted); }

.fw-product .pgi-caption,
.fw-product .pgi-caption-inner,
.fw-product .fw-actions{
  position: relative;
  z-index: 5;
}
.fw-product .fw-actions button{ pointer-events: auto; }
#fw-cart-btn{ cursor: pointer; }

.fw-cart-btn .tt-btn-inner{
  gap: 8px;
}

.fw-cart-btn .fw-cart-count{
  padding: 0 7px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 12px;
  flex: 0 0 auto;
  
  background: color-mix(in srgb, var(--fw-accent) 20%, transparent 80%);
  border: 1px solid color-mix(in srgb, var(--fw-accent) 35%, var(--fw-border) 65%);
  color: #121212;
  padding-top: 0; padding-bottom: 0; 
}


.tt-btn:hover .tt-btn-inner > .fw-cart-count{
  transform: none !important;
}

#fw-cart-drawer,
#fw-cart-items{
  overscroll-behavior: contain;
}


html.fw-cart-open,
body.fw-cart-open{
  overflow: hidden !important;
}


body.fw-modal-open {
  overflow: hidden;
}

#fw-atc-modal.fw-modal {
  position: fixed;
  inset: 0;
  z-index: 10050; 
  display: none;
}

#fw-atc-modal.fw-modal.fw-open {
  display: block;
}

#fw-atc-modal .fw-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
}

#fw-atc-modal .fw-modal-card {
  position: relative;
  width: min(560px, calc(100vw - 28px));
  margin: min(12vh, 120px) auto 24px;
  background: color-mix(in oklab, var(--tt-sub-menu-bg-color) 92%, transparent);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  box-shadow: 0 18px 70px rgba(0,0,0,0.55);
  padding: 16px;
}

#fw-atc-modal .fw-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--tt-text-color);
  font-size: 26px;
  line-height: 1;
  opacity: 0.8;
  cursor: pointer;
}

#fw-atc-modal .fw-modal-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 520px) {
  #fw-atc-modal .fw-modal-card {
    margin: 10vh auto 18px;
    padding: 14px;
  }
  #fw-atc-modal .fw-modal-body {
    grid-template-columns: 1fr;
  }
}

#fw-atc-modal .fw-modal-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

#fw-atc-modal .fw-atc-title {
  font-family: var(--tt-alter-font);
  font-size: 22px;
  line-height: 1.1;
  margin: 2px 0 6px;
  color: var(--tt-text-color);
}

#fw-atc-modal .fw-atc-price {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 10px;
  color: var(--tt-text-color);
}

#fw-atc-modal .fw-atc-section {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 10px;
}

#fw-atc-modal .fw-atc-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 8px;
}

#fw-atc-modal .fw-atc-select,
#fw-atc-modal .fw-atc-qty {
  width: 100%;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--tt-text-color);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

#fw-atc-modal .fw-atc-hint {
  font-size: 12px;
  opacity: 0.65;
  margin-top: 6px;
}

#fw-atc-modal .fw-atc-confirm.fw-busy {
  opacity: 0.75;
  pointer-events: none;
}
