#storeCartModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1050;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}
#storeCartModal.is-open {
  visibility: visible;
  opacity: 1;
}
.ct-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 23, 17, 0.45);
  backdrop-filter: blur(2px);
}
.ct-panel {
  position: absolute;
  top: 76px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: 85vh;
  background-color: #FFFFFF;
  border: 1px solid #E4DFD8;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(41, 30, 32, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform 0.25s ease;
}
#storeCartModal.is-open .ct-panel {
  transform: translateY(0);
}
.ct-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #F7F2EA;
  border-bottom: 1px solid #E4DFD8;
}
.ct-header-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ct-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #272219;
  margin: 0;
}
.ct-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  background-color: #A82134;
  border-radius: 999px;
}
.ct-close-btn {
  background: none;
  border: none;
  padding: 4px;
  color: #72695A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.ct-close-btn:hover {
  color: #A82134;
  background-color: rgba(168, 33, 52, 0.08);
}
.ct-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px;
  background-color: #FFFFFF;
}
.ct-item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed #E4DFD8;
}
.ct-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.ct-item-thumb-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-color: #F7F2EA;
  border: 1px solid #E4DFD8;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-item-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.ct-item-details {
  flex: 1 1 auto;
  min-width: 0;
}
.ct-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #272219;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.ct-item-meta {
  font-size: 0.8rem;
  color: #72695A;
  margin-bottom: 8px;
}
.ct-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ct-qty-pill {
  display: inline-flex;
  align-items: center;
  background-color: #F7F2EA;
  border: 1px solid #E4DFD8;
  border-radius: 999px;
  height: 26px;
  padding: 0 2px;
}
.ct-qty-btn {
  background: none;
  border: none;
  width: 22px;
  height: 22px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  color: #272219;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ct-qty-btn:hover {
  background-color: #FFFFFF;
  color: #A82134;
}
.ct-qty-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: #272219;
  min-width: 24px;
  text-align: center;
}
.ct-remove-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  color: #72695A;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}
.ct-remove-link:hover {
  color: #A82134;
}
.ct-panel-footer {
  background-color: #F7F2EA;
  border-top: 1px solid #E4DFD8;
  padding: 16px 20px;
}
.ct-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ct-total-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #72695A;
}
.ct-total-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #A82134;
}
.ct-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ct-btn-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background-color: #FFFFFF;
  border: 1px solid #E4DFD8;
  border-radius: 6px;
  color: #272219;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ct-btn-continue:hover {
  background-color: #F9F6F0;
  border-color: #C3BEB6;
}
.ct-btn-view-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background-color: #A82134;
  border: 1px solid #A82134;
  border-radius: 6px;
  color: #FFFFFF !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.ct-btn-view-cart:hover {
  background-color: #8A1B2B;
}
.ct-empty-state {
  text-align: center;
  padding: 24px 10px;
}
.ct-empty-icon {
  color: #72695A;
  margin-bottom: 12px;
}
.ct-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #272219;
  margin: 0 0 6px 0;
}
.ct-empty-desc {
  font-size: 0.8rem;
  color: #72695A;
  margin: 0 0 16px 0;
}
.ct-btn-home {
  display: inline-block;
  padding: 8px 18px;
  background-color: #FFFFFF;
  border: 1px solid #E4DFD8;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #272219 !important;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.ct-btn-home:hover {
  background-color: #F7F2EA;
}
.ct-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #1B1711;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 1100;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ct-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ct-toast-icon {
  color: #FFFFFF;
  display: flex;
  align-items: center;
}
@media (max-width: 576px) {
  .ct-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  #storeCartModal.is-open .ct-panel {
    transform: translateY(0);
  }
}