/** Shopify CDN: Minification failed

Line 19:0 All "@import" rules must come first

**/
/* ===================================
   CART POPUP - GLASSMORPHISM DESIGN
   Custom cart popup below navbar
   =================================== */

.header__icon--cart-popup {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300&family=Jost:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

/* CSS Variables */
:root {
  /* Dimensions */
  --cart-popup-width: 390px;
  --cart-popup-padding-y: 10px;
  --cart-popup-padding-x: 24px;
  --cart-popup-gap: 16px;
  
  --cart-header-height: 70px;
  --cart-title-icon-gap: 12px;
  
  --cart-item-height: 140px;
  --cart-item-padding-y: 12px;
  --cart-item-padding-x: 18px;
  --cart-item-gap: 24px;
  --cart-item-border-radius: 10px;
  
  --cart-item-image-width: 91px;
  --cart-item-image-height: 96px;
  
  --cart-counter-width: 83px;
  --cart-counter-height: 24px;
  --cart-counter-padding-y: 6px;
  --cart-counter-padding-x: 8px;
  --cart-counter-border-radius: 6px;
  
  --cart-button-border-radius: 50px;
  --cart-button-padding: 16px;
  
  /* Colors */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #F6F6F6;
  --color-text-tertiary: #BEBEBE;
  --color-bg-dark: #050608;
  --color-border-light: #BEBEBE;
  
  /* Typography */
  --font-family-jost: 'Jost', sans-serif;
  --font-family-inter: 'Inter', sans-serif;
  
  /* Effects */
  --glass-background: rgba(20, 20, 25, 0.97);
  /* --glass-backdrop-filter: blur(5px); */
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0px 0px 20px 0px rgba(168, 168, 168, 0.5);
  
  /* Transitions */
  --transition-default: 0.3s ease;
}

/* ===================================
   CART POPUP CONTAINER
   =================================== */

cart-popup {
  display: block;
  position: fixed;
  /* top position is set dynamically by JavaScript based on header height */
  right: 0px;
  width: var(--cart-popup-width);
  z-index: 99;
  
  /* Hidden by default */
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  
  /* Transition */
  transition: opacity var(--transition-default), transform var(--transition-default);
}

cart-popup.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-popup__container {
  background: var(--glass-background);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--cart-item-border-radius);
  padding: var(--cart-popup-padding-y) var(--cart-popup-padding-x);
  
  display: flex;
  flex-direction: column;
  gap: var(--cart-popup-gap);
}

/* ===================================
   HEADER SECTION
   =================================== */

.cart-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--cart-header-height);
}

.cart-popup__title-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--cart-title-icon-gap);
}

.cart-popup__title {
  font-family: var(--font-family-jost);
  font-size: 24px;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0;
}

.cart-popup__count {
  font-family: var(--font-family-inter);
  font-size: 14px;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: -0.005em;
  color: var(--color-text-secondary);
}

.cart-popup__close {
  width: 18.97px;
  height: 18.77px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #FFFFFF;
  padding: 0;
  margin-left: 9.03px; /* Left offset from Figma */
  transition: transform var(--transition-default), opacity var(--transition-default);
}

.cart-popup__close svg {
  width: 100%;
  height: 100%;
}

.cart-popup__close:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.cart-popup__close:active {
  transform: scale(0.95);
}

/* ===================================
   ITEMS SECTION (SCROLLABLE)
   =================================== */

.cart-popup__items {
  display: flex;
  flex-direction: column;
  gap: var(--cart-item-gap);
  
  /* Max 2 items visible, then scroll */
  max-height: calc((var(--cart-item-height) * 2) + (var(--cart-item-gap) * 1));
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.cart-popup__items::-webkit-scrollbar {
  width: 4px;
}

.cart-popup__items::-webkit-scrollbar-track {
  background: transparent;
}

.cart-popup__items::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.cart-popup__items::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ===================================
   ITEM CARD
   =================================== */

.cart-popup__item {
  background: rgba(255, 255, 255, 0.06);
  border: var(--glass-border);
  border-radius: var(--cart-item-border-radius);
  padding: var(--cart-item-padding-y) var(--cart-item-padding-x);
  
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  
  min-height: var(--cart-item-height);
  
  transition: opacity var(--transition-default), transform var(--transition-default);
}

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

.cart-popup__item.is-removing {
  opacity: 0;
  transform: translateX(100%);
}

/* Left Section: Image + Info */
.cart-item__left {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0; /* Allow text truncation */
}

.cart-item__image {
  width: var(--cart-item-image-width);
  height: var(--cart-item-image-height);
  border-radius: var(--cart-item-border-radius);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Text wrapper ↔ Quantity */
  min-width: 0;
  flex: 1;
}

.cart-item__text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px; /* Space between title and variant */
}

.cart-item__title {
  font-family: var(--font-family-jost);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  line-height: 100%;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin: 0;
  
  /* Truncate long titles */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item__variant {
  font-family: var(--font-family-jost);
  font-size: 10px;
  font-weight: 400;
  font-style: italic;
  line-height: 100%;
  letter-spacing: -0.03em;
  text-align: left;
  color: var(--color-text-tertiary);
  margin: 0;
}

/* Quantity Counter */
.cart-item__quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  
  width: var(--cart-counter-width);
  height: var(--cart-counter-height);
  padding: var(--cart-counter-padding-y) var(--cart-counter-padding-x);
  
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border-light);
  border-radius: var(--cart-counter-border-radius);
}

.quantity-btn {
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-family-jost);
  font-size: 12px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.03em;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-default);
}

.quantity-btn:hover:not(:disabled) {
  opacity: 0.7;
}

.quantity-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quantity-input {
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-family-jost);
  font-size: 12px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.03em;
  text-align: center;
  width: 24px;
  padding: 0;
  -moz-appearance: textfield;
}

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

/* Right Section: Delete + Price */
.cart-item__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  flex-shrink: 0;
  min-height: 96px; /* Match item info height */
}

.cart-item__delete {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-default);
  order: 1; /* Delete button first (top) */
}

.cart-item__delete:hover {
  opacity: 0.7;
}

.cart-item__delete svg {
  width: 12px;
  height: 13px;
}

.cart-item__price-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  order: 2; /* Prices second (bottom) */
}

.cart-item__total {
  font-family: var(--font-family-jost);
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.03em;
  text-align: right;
  color: var(--color-text-primary);
  margin: 0;
}

.cart-item__each {
  font-family: var(--font-family-jost);
  font-size: 10px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.03em;
  text-align: right;
  color: var(--color-text-tertiary);
  margin: 0;
}

/* ===================================
   FOOTER SECTION
   =================================== */

.cart-popup__footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
}

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

.cart-popup__subtotal-label {
  font-family: var(--font-family-jost);
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  line-height: 100%;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.cart-popup__subtotal-value {
  font-family: var(--font-family-jost);
  font-size: 24px;
  font-weight: 500;
  font-style: italic;
  line-height: 100%;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.cart-popup__checkout {
  width: 100%;
  height: 34px;
  padding: 0 16px; /* Only horizontal padding */
  border-radius: var(--cart-button-border-radius);
  border: none;
  box-sizing: border-box;

  /* Flexbox for centering */
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.08);
  
  /* Lighting effect border - gradient lighting around edges */
  box-shadow: 
    /* Inner glow (lighting effect) */
    inset 0 1px 0 rgba(255, 255, 255, 0.4),    /* Top light */
    inset -1px 0 0 rgba(255, 255, 255, 0.2),   /* Right light */
    inset 0 -1px 0 rgba(255, 255, 255, 0.4),   /* Bottom light */
    inset 1px 0 0 rgba(255, 255, 255, 0.3),    /* Left light */
    /* Outer shadow */
    0px 0px 20px 0px rgba(168, 168, 168, 0.5);
  
  font-family: var(--font-family-jost);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  line-height: 100%;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--color-text-tertiary);
  
  cursor: pointer;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.cart-popup__checkout:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5),
    inset 1px 0 0 rgba(255, 255, 255, 0.4),
    0px 4px 24px 0px rgba(168, 168, 168, 0.6);
}

.cart-popup__checkout:active {
  transform: translateY(0);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media screen and (max-width: 990px) {
  cart-popup {
    --cart-popup-width: 340px;
    right: 15px;
  }
}

@media screen and (max-width: 749px) {
  cart-popup {
    --cart-popup-width: calc(100% - 40px);
    right: 20px;
    left: 20px;
  }
  
  .cart-popup__title {
    font-size: 20px;
  }
  
  .cart-item__title {
    font-size: 14px;
  }
  
  .cart-popup__subtotal-label,
  .cart-popup__subtotal-value {
    font-size: 20px;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
  cart-popup,
  .cart-popup__item,
  .quantity-btn,
  .cart-item__delete,
  .cart-popup__checkout,
  .cart-popup__close {
    transition: none;
  }
}

/* Focus styles */
.quantity-btn:focus-visible,
.cart-item__delete:focus-visible,
.cart-popup__checkout:focus-visible,
.cart-popup__close:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 2px;
}
