@charset "utf-8";

/* Shopping Cart Badge & Icon Interactive States */
.cart-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.25s ease, filter 0.25s ease;
  user-select: none;
}

.cart-trigger img {
  opacity: 0.22;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.cart-trigger:hover img {
  opacity: 0.55 !important;
}

/* When items are in the cart: make icon more opaque and prominent */
.cart-trigger.has-items img {
  opacity: 0.7 !important;       /* Opaque state when items are in cart */
}

.cart-trigger.has-items:hover img {
  opacity: 0.95 !important;
}

.cart-trigger.has-items .cartstyle {
  color: #ffffff;
}

.cartstyle {
  position: relative;
  font-size: 34px;                  /* Number Size: adjust as you like (e.g. 30px, 34px, 38px) */
  font-weight: 600;                 /* BOLDNESS: choose 400 (normal), 600 (semi-bold), or 700 (bold) */
  color: #e0e0e0d6;
  font-family: "Josefin", sans-serif;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  top: 3px;                         /* Vertical position: increase (e.g. 4px, 5px) to move it down */
  line-height: 1;
}

/* Toast notification when adding item to cart */
.cart-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(10, 10, 10, 0.30);
  backdrop-filter: blur(10px);          /* Frosted glass blur effect */
  -webkit-backdrop-filter: blur(10px);  /* Safari / iOS support */
  border: none;
  color: #f0f0f0;
  padding: 22px 28px;
  font-family: Josefin, sans-serif;
  font-size: 18px;
  font-weight: 200;
  letter-spacing: 1px;
  box-shadow: none;
  border-radius: 0;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
}

.cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Modal Overlay */
.cart-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px 30px;
}

.cart-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Cart Centered Modal Window */
.cart-drawer {
  width: 100%;
  max-width: 680px;
  height: calc(100vh - 50px);
  max-height: 840px;
  background: rgba(235, 235, 235, 0.92);
  border: none;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  font-family: Josefin, sans-serif;
  color: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
}

.cart-modal-backdrop.open .cart-drawer {
  transform: scale(1);
  opacity: 1;
}

/* Modal Header */
.cart-drawer-header {
  padding: 28px 36px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-title {
  font-size: 26px;
  letter-spacing: 3px;
  font-weight: 500;
  color: #111111;
}

.cart-drawer-close {
  background: transparent;
  border: none;
  color: #777777;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}

.cart-drawer-close:hover {
  color: #000000;
}

/* Modal Items List */
.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 36px;
}

.cart-empty-message {
  text-align: center;
  padding: 80px 20px;
  color: #666666;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.cart-item-row {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  align-items: center;
}

.cart-item-thumb {
  width: 90px;
  height: 56px;
  object-fit: cover;
  border-radius: 0;
  background: #000;
  border: none;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 19px;
  font-weight: 500;
  color: #111111;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.cart-item-sub {
  font-size: 13px;
  color: #666666;
  margin-top: 4px;
}

.cart-item-price {
  font-size: 20px;
  font-weight: 500;
  color: #111111;
  white-space: nowrap;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #888888;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: #cc2222;
}

/* Modal Footer */
.cart-drawer-footer {
  padding: 24px 36px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 22px;
  color: #333333;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.cart-total-amount {
  font-size: 30px;
  font-weight: 600;
  color: #000000;
}

.cart-checkout-btn {
  width: 100%;
  height: 54px;
  background: #181615;
  border: none !important;
  color: #ffffff;
  font-family: Josefin, sans-serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 2.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: none;
}

.cart-checkout-btn:hover {
  background: #332f2e;
}

.cart-continue-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: #666666;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.cart-continue-link:hover {
  color: #111111;
}

@media screen and (max-width: 600px) {
  .cart-modal-backdrop {
    padding: 15px;
  }
  .cart-drawer {
    height: calc(100vh - 30px);
  }
  .cart-drawer-header,
  .cart-drawer-items,
  .cart-drawer-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
