/* CUSTOM CART BUTTON */

.sf-cart-trigger {
  position: fixed;
  top: 60px;
  right: max(24px, calc((100vw - 1120px) / 2 + 24px));
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 14px 40px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.75);
  color: #111;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.sf-cart-trigger:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.68);
}

.sf-cart-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.sf-cart-count {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* SUMMER FIT LIQUID GLASS CART */

.sf-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.sf-cart-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sf-cart-panel {
  width: min(430px, 100vw);
  height: 100%;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  transform: translateX(105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.sf-cart-overlay.is-active .sf-cart-panel {
  transform: translateX(0);
}

.sf-cart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.sf-cart-title {
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  color: #fff;
}

.sf-cart-timer {
  margin-top: 8px;
  color: #ff3636;
  font-size: 14px;
  line-height: 1.2;
}

.sf-cart-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sf-cart-items {
  flex: 1;
  overflow: auto;
  padding: 18px 0;
}

.sf-cart-empty {
  display: none;
  margin: auto 0;
  text-align: center;
  color: rgba(255,255,255,0.78);
}

.sf-cart-empty.is-active {
  display: block;
}

.sf-cart-empty-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.sf-cart-empty-text {
  font-size: 14px;
}

.sf-cart-item {
  display: grid;
  grid-template-columns: 62px 1fr 44px;
  gap: 12px;
  align-items: start;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
}

.sf-cart-item-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.sf-cart-item-name {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 600;
  color: #fff;
}

.sf-cart-item-price,
.sf-cart-item-size {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.85;
}

.sf-cart-item-size {
  opacity: 0.75;
}

.sf-cart-item-remove {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.sf-cart-item-qty {
  width: 42px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-align: center;
}

.sf-cart-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.sf-cart-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: #fff;
}

.sf-cart-checkout {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.sf-cart-gift-cta {
  position: relative;
  display: none;
  padding: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(80,60,255,.22), rgba(180,55,255,.18));
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(80,60,255,.18), inset 0 1px 0 rgba(255,255,255,.14);
}

.sf-cart-gift-cta.is-active {
  display: block;
}

.sf-cart-gift-cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, rgba(43,60,255,.28), rgba(139,44,255,.22), rgba(255,61,242,.20), rgba(43,60,255,.28));
  background-size: 260% 260%;
  animation: gift-gradient 4s ease infinite;
  opacity: .85;
}

.sf-cart-gift-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.08) 36%, rgba(255,255,255,.34) 50%, rgba(255,255,255,.08) 64%, transparent 100%);
  transform: translateX(-120%);
  animation: sf-gift-shine 2.6s ease-in-out infinite;
}

.sf-cart-gift-cta__content,
.sf-cart-gift-cta__button {
  position: relative;
  z-index: 1;
}

.sf-cart-gift-cta__eyebrow {
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sf-cart-gift-cta__title {
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.sf-cart-gift-cta__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: 14px;
  background: linear-gradient(120deg, #2b3cff, #8b2cff, #ff3df2, #2b3cff);
  background-size: 260% 260%;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  animation: gift-gradient 3s ease infinite;
  box-shadow: 0 12px 28px rgba(80,60,255,.26);
}

@media (max-width: 991px) {
  .sf-cart-trigger {
    top: 58px;
    right: 16px;
  }
}

@media (max-width: 767px) {
  .sf-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: flex-end;
  }

  .sf-cart-panel {
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh;
    padding: 18px !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(35, 35, 35, .72), rgba(18, 18, 18, .62)) !important;
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border-left: 1px solid rgba(255, 255, 255, .16);
    box-shadow: -18px 0 60px rgba(0, 0, 0, .38);
    transform: translate3d(105%, 0, 0);
    transition: transform .34s cubic-bezier(.22, 1, .36, 1);
    display: flex !important;
    flex-direction: column !important;
  }

  .sf-cart-overlay.is-active .sf-cart-panel {
    transform: translate3d(0, 0, 0);
  }

  .sf-cart-head {
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }

  .sf-cart-title {
    color: #fff !important;
  }

  .sf-cart-timer {
    color: #ff3636;
  }

  .sf-cart-close {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(0, 0, 0, .24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
  }

  .sf-cart-items {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px 0;
  }

  .sf-cart-item {
    grid-template-columns: 58px 1fr 42px !important;
    padding: 14px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .11) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    color: #fff !important;
  }

  .sf-cart-item-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
  }

  .sf-cart-item-name {
    color: #fff;
  }

  .sf-cart-item-price,
  .sf-cart-item-size {
    color: rgba(255, 255, 255, .82);
  }

  .sf-cart-item-size {
    color: rgba(255, 255, 255, .72);
  }

  .sf-cart-item-remove {
    color: rgba(255, 255, 255, .7);
  }

  .sf-cart-item-qty {
    width: 42px;
  }

  .sf-cart-footer {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding-top: 14px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0), rgba(18, 18, 18, .44) 18%, rgba(18, 18, 18, .58));
    border-top: 1px solid rgba(255, 255, 255, .18);
  }

  .sf-cart-total-row {
    color: #fff !important;
  }

  .sf-cart-checkout {
    height: 52px !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #000 !important;
  }

  .sf-cart-empty {
    align-self: center;
    margin: auto;
    text-align: center;
    color: rgba(255, 255, 255, .72);
  }

  .sf-cart-empty-title,
  .sf-cart-empty-text {
    color: rgba(255, 255, 255, .78);
  }
}

@media (max-width: 767px) {
  .sf-cart-trigger.sf-cart-trigger-mobile {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    align-self: center !important;
    flex: 0 0 46px !important;
    flex-shrink: 0 !important;

    line-height: 0 !important;
    vertical-align: middle !important;

    border-radius: 50% !important;
    background: rgba(255,255,255,.52) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(255,255,255,.65) !important;
    box-shadow:
      0 12px 34px rgba(0,0,0,.14),
      inset 0 1px 0 rgba(255,255,255,.75) !important;

    color: #111 !important;
    text-decoration: none !important;
    transform: none !important;
  }

  .sf-cart-trigger-mobile .sf-cart-icon {
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
  }

  .sf-cart-trigger-mobile .sf-cart-icon-img {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    object-fit: contain !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
  }

  .sf-cart-trigger-mobile .sf-cart-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;

    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 50% !important;

    background: #111 !important;
    color: #fff !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;

    z-index: 3 !important;
    pointer-events: none !important;
  }

  .sf-cart-trigger-mobile span:not(.sf-cart-icon):not(.sf-cart-count) {
    display: none;
  }
}

.sf-cart-empty {
  display: none !important;
}

.sf-free-shipping {
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.sf-free-shipping-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sf-free-shipping-title {
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  opacity: .9;
}

.sf-free-shipping-value {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sf-free-shipping-track {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: visible;
  border: 1px solid rgba(255,255,255,.14);
}

.sf-free-shipping-fill {
  width: var(--sf-free-shipping-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b80000, #ff1f1f, #ff6a6a, #ff1f1f, #b80000);
  background-size: 220% 100%;
  animation: sf-free-shipping-flow 1.8s linear infinite;
  box-shadow: 0 0 16px rgba(255,0,0,.45);
  transition: width .45s cubic-bezier(.22,1,.36,1);
}

.sf-free-shipping-truck {
  position: absolute;
  top: 50%;
  left: var(--sf-free-shipping-progress, 0%);
  width: 26px;
  height: 26px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
  transition: left .45s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

@keyframes sf-free-shipping-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 220% 50%;
  }
}

@keyframes gift-gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes sf-gift-shine {
  0% {
    transform: translateX(-120%);
  }

  55%,
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 767px) {
  .sf-cart-gift-cta {
    padding: 12px;
    border-radius: 16px;
  }

  .sf-cart-gift-cta__button {
    height: 48px;
  }

  .sf-free-shipping {
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 10px;
  }

  .sf-free-shipping-title,
  .sf-free-shipping-value {
    font-size: 12px;
  }

  .sf-free-shipping-track {
    height: 8px;
  }

  .sf-free-shipping-truck {
    width: 24px;
    height: 24px;
  }
}

.sf-cart-item.is-gift {
  border-color: rgba(255, 255, 255, .34);
  background: linear-gradient(135deg, rgba(80,60,255,.20), rgba(255,255,255,.12));
}

.sf-cart-item-gift-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
}

.sf-cart-item-price-old {
  margin-right: 6px;
  opacity: .58;
  text-decoration: line-through;
}

.sf-cart-item-price-gift {
  color: #fff;
  font-weight: 800;
}
