:root {
  --theme-color-100: #3c3476;
  --theme-color-200: #4c4092;
  --theme-radius: 15px;
}

/* =========================================
CART PAGE LOADING
========================================= */
.cart-page {
  position: relative;
}

.cart-page>.container {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cart-page.loaded>.container {
  opacity: 1;
}

.cart-page.loaded .cart-page-skeleton {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================
SKELETON
========================================= */
.cart-page-skeleton {
  position: absolute;
  inset: 0;
  z-index: 40;
  transition: 0.4s ease;
}

.cart-page-skeleton .sk-icon,
.cart-page-skeleton .sk-title,
.cart-page-skeleton .sk-subtitle,
.cart-page-skeleton .sk-delete,
.cart-page-skeleton .sk-product-image,
.cart-page-skeleton .sk-line,
.cart-page-skeleton .sk-summary-line,
.cart-page-skeleton .sk-checkout-btn,
.cart-page-skeleton .sk-counter span {
  position: relative;
  overflow: hidden;
  background: #ececec;
}

.cart-page-skeleton .sk-icon::before,
.cart-page-skeleton .sk-title::before,
.cart-page-skeleton .sk-subtitle::before,
.cart-page-skeleton .sk-delete::before,
.cart-page-skeleton .sk-product-image::before,
.cart-page-skeleton .sk-line::before,
.cart-page-skeleton .sk-summary-line::before,
.cart-page-skeleton .sk-checkout-btn::before,
.cart-page-skeleton .sk-counter span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ececec 25%, #f8f8f8 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: cartSkeleton 1.2s infinite linear;
}

.cart-page-skeleton {
  /* ================= HEADER ================= */
}

.cart-page-skeleton .sk-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-page-skeleton .sk-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  flex-shrink: 0;
}

.cart-page-skeleton .sk-header-content {
  width: 100%;
}

.cart-page-skeleton .sk-title {
  width: 180px;
  height: 20px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.cart-page-skeleton .sk-subtitle {
  width: 240px;
  height: 12px;
  border-radius: 30px;
}

.cart-page-skeleton {
  /* ================= PRODUCT CARD ================= */
}

.cart-page-skeleton .sk-cart-card {
  position: relative;
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid #eee;
}

.cart-page-skeleton .sk-delete {
  position: absolute;
  bottom: 12px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.cart-page-skeleton .sk-product-image {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .cart-page-skeleton .sk-product-image {
    width: 90px;
    height: 90px;
  }
}

.cart-page-skeleton .sk-product-content {
  width: 100%;
  padding-top: 6px;
}

.cart-page-skeleton .sk-line {
  height: 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.cart-page-skeleton .sk-line.lg {
  width: 90%;
  height: 16px;
}

.cart-page-skeleton .sk-line.md {
  width: 70%;
}

.cart-page-skeleton .sk-line.sm {
  width: 45%;
}

.cart-page-skeleton {
  /* ================= COUNTER ================= */
}

.cart-page-skeleton .sk-counter {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.cart-page-skeleton .sk-counter span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}

.cart-page-skeleton {
  /* ================= SUMMARY ================= */
}

.cart-page-skeleton .sk-summary-box {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #eee;
}

.cart-page-skeleton .sk-summary-line {
  width: 100%;
  height: 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.cart-page-skeleton .sk-summary-line.total {
  height: 22px;
  width: 80%;
}

.cart-page-skeleton .sk-checkout-btn {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  margin-top: 26px;
}

.cart-page-skeleton {
  /* ================= MOBILE ================= */
}

@media (max-width: 576px) {
  .cart-page-skeleton .sk-title {
    width: 140px;
  }

  .cart-page-skeleton .sk-subtitle {
    width: 180px;
  }

  .cart-page-skeleton .sk-cart-card {
    padding: 12px;
  }
}

/* =========================================
ANIMATION
========================================= */
@keyframes cartSkeleton {
  0% {
    background-position: -200% 0;
  }

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

.cart-page .main-cart-box {
  background: #faf9ff;
  border: 1px solid rgba(76, 64, 146, 0.12);
  border-radius: 15px;
}

.cart-page {
  /* ================= ITEM ================= */
}

.cart-page .cart-item {
  background: #fff;
  border-radius: var(--theme-radius);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cart-page .cart-item .cart-img {
  width: 120px;
  height: 120px;
  border-radius: var(--theme-radius);
  overflow: hidden;
}

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

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

.cart-page .cart-item .cart-info h5 {
  color: var(--theme-color-100);
  font-weight: 700;
  font-size: 15px;
}

.cart-page .cart-item .cart-info .cart-prices {
  margin: 8px 0;
}

.cart-page .cart-item .cart-info .cart-prices .old {
  font-size: 12px;
  text-decoration: line-through;
  color: #aaa;
  margin-left: 10px;
}

.cart-page .cart-item .cart-info .cart-prices .new {
  color: var(--theme-color-200);
  font-weight: bold;
  font-size: 14px;
}

.cart-page .cart-item {
  /* delete */
}

.cart-page .cart-item .cart-delete {
  position: absolute;
  bottom: 10px;
  left: 10px;
  border: none;
  background: var(--theme-color-100);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  cursor: pointer;
}

.cart-page .cart-item .cart-delete svg {
  width: 24px;
  height: 24px;
}

.cart-page {
  /* ================= COUNTER ================= */
}

.cart-page .cart-counter {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.cart-page .cart-counter .qty-btn {
  width: 35px;
  height: 35px;
  border: none;
  background: #faf9ff;
  color: var(--theme-color-100);
  border-radius: 10px;
  cursor: pointer;
}

.cart-page .cart-counter .qty-input {
  width: 60px;
  text-align: center;
  border: 1px solid #ddd;
  margin: 0 5px;
  border-radius: 10px;
  height: 35px;
  outline: none;
}

.cart-page {
  /* ================= SUMMARY ================= */
}

.cart-page .cart-summary {
  border-radius: var(--theme-radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: #faf9ff;
  border: 1px solid rgba(76, 64, 146, 0.12);
}

.cart-page .cart-summary h4 {
  color: var(--theme-color-100);
  margin-bottom: 20px;
}

.cart-page .cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart-page .cart-summary .summary-row.total {
  border-top: 1px solid #eee;
  padding-top: 10px;
  font-weight: bold;
}

.cart-page .cart-summary .btn-checkout {
  width: 100%;
  margin-top: 15px;
  border: none;
  background: linear-gradient(135deg, var(--theme-color-100), var(--theme-color-200));
  color: #fff;
  padding: 12px;
  border-radius: var(--theme-radius);
  font-weight: bold;
  cursor: pointer;
}

.cart-page {
  /* ================= MOBILE ================= */
}

/* ================= MODAL ================= */
.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 9999;
  /* active state */
}

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

.cart-modal.active .cart-modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cart-modal {
  /* modal box */
}

.cart-modal .cart-modal-box {
  width: 340px;
  background: #fff;
  border-radius: calc(var(--theme-radius) + 5px);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(76, 64, 146, 0.12);
  /* animation */
  transform: translateY(40px) scale(0.92);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  /* close btn */
}

.cart-modal .cart-modal-box .close-modal {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: #f3f3f3;
  color: #555;
  font-size: 20px;
  cursor: pointer;
  transition: 0.25s ease;
}

.cart-modal .cart-modal-box .close-modal:hover {
  background: #faf9ff;
  color: var(--theme-color-200);
  transform: rotate(90deg);
}

.cart-modal .cart-modal-box {
  /* icon */
}

.cart-modal .cart-modal-box .modal-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #faf9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--theme-color-200);
  animation: modalPulse 2s infinite;
}

.cart-modal .cart-modal-box h4 {
  font-size: 22px;
  font-weight: 800;
  color: var(--theme-color-100);
  margin-bottom: 10px;
}

.cart-modal .cart-modal-box p {
  color: #777;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.cart-modal .cart-modal-box {
  /* buttons */
}

.cart-modal .cart-modal-box .modal-actions {
  display: flex;
  gap: 10px;
}

.cart-modal .cart-modal-box .modal-actions button {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.cart-modal .cart-modal-box .modal-actions .btn-yes {
  background: linear-gradient(135deg, var(--theme-color-100), var(--theme-color-200));
  color: #fff;
}

.cart-modal .cart-modal-box .modal-actions .btn-no {
  background: #f3f3f3;
  color: #444;
}

.cart-modal .cart-modal-box .modal-actions .btn-no:hover {
  background: #e9e9e9;
}

.empty-cart-box {
  position: relative;
  padding: 50px 25px;
  border-radius: var(--theme-radius);
  text-align: center;
  overflow: hidden;
  /* image */
}

.empty-cart-box .empty-cart-image {
  position: relative;
  z-index: 2;
}

.empty-cart-box .empty-cart-image img {
  width: 240px;
  max-width: 100%;
  object-fit: contain;
  animation: floatingCart 4s ease-in-out infinite;
}

.empty-cart-box {
  /* content */
}

.empty-cart-box .empty-cart-content {
  position: relative;
  z-index: 2;
}

.empty-cart-box .empty-cart-content h3 {
  margin-top: 20px;
  font-size: 30px;
  font-weight: 900;
  color: var(--theme-color-100);
}

.empty-cart-box .empty-cart-content p {
  width: min(100%, 500px);
  margin: 12px auto 0;
  line-height: 2;
  color: #777;
  font-size: 15px;
}

.empty-cart-box {
  /* button */
}

.empty-cart-box .empty-cart-btn {
  margin-top: 28px;
  height: 56px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--theme-color-100), var(--theme-color-200));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: 0.35s ease;
  box-shadow: 0 12px 25px rgba(76, 64, 146, 0.18);
}

.empty-cart-box .empty-cart-btn svg {
  transition: 0.3s ease;
}

.empty-cart-box .empty-cart-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(76, 64, 146, 0.28);
}

.empty-cart-box .empty-cart-btn:hover svg {
  transform: translateX(-4px);
}

/* floating animation */
@keyframes floatingCart {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* mobile */
@media (max-width: 768px) {
  .empty-cart-box {
    padding: 40px 18px;
  }

  .empty-cart-box .empty-cart-image img {
    width: 180px;
  }

  .empty-cart-box .empty-cart-content h3 {
    font-size: 24px;
  }

  .empty-cart-box .empty-cart-content p {
    font-size: 14px;
    line-height: 1.9;
  }

  .empty-cart-box .empty-cart-btn {
    width: 100%;
  }
}

/* pulse animation */
@keyframes modalPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

@media screen and (max-width: 992px) {
  .cart-page .cart-item .cart-info h5 {
    font-size: 13px;
    line-height: 1.5rem;
  }

  .cart-page .cart-item .cart-delete {
    position: absolute;
    bottom: 10px;
    left: 10px;
    border: none;
    background: var(--theme-color-100);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    cursor: pointer;
  }
}

@media screen and (max-width: 576px) {
  .cart-page .cart-item .cart-info h5 {
    font-size: 14px;
    line-height: 1.5rem;
  }

  .cart-page .cart-item {
    padding: 10px;
  }
}

@media screen and (max-width: 376px) {
  .cart-page .cart-item .cart-info h5 {
    font-size: 12px;
    line-height: 1.5rem;
  }

  .cart-page .cart-item .cart-delete {
    bottom: 10px;
  }

  .cart-page .cart-item .cart-info .cart-prices .old {
    font-size: 11px;
  }

  .cart-page .cart-item .cart-info .cart-prices .new {
    font-size: 13px;
  }

  .cart-page .cart-item .cart-img {
    width: 100px;
    height: 100px;
  }
}

@media screen and (max-width: 321px) {
  .cart-page .cart-item .cart-info h5 {
    font-size: 10px;
    line-height: 1.5rem;
  }

  .cart-page .cart-item .cart-info .cart-prices .old {
    font-size: 9px;
  }

  .cart-page .cart-item .cart-info .cart-prices .new {
    font-size: 11px;
  }

  .cart-page .cart-item .cart-img {
    width: 80px;
    height: 80px;
  }

  .cart-page .cart-counter .qty-input {
    width: 50px;
    height: 30px;
  }

  .cart-page .cart-counter .qty-btn {
    width: 30px;
    height: 30px;
  }

  .cart-page .cart-item .cart-delete {
    bottom: 8px;
    left: 10px;
    border: none;
    width: 30px;
    height: 30px;
  }

  .cart-page .cart-item .cart-delete svg {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
  }

  .cart-page .cart-item {
    padding: 5px;
  }

  .cart-modal .cart-modal-box {
    width: 300px;
    padding: 28px 15px;
  }
}

.cart-page .cart-item .cart-delete {
  bottom: 5px;
}

.cart-section-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #faf9ff;
  border: 1px solid rgba(76, 64, 146, 0.12);
  padding: 18px;
  border-radius: var(--theme-radius);
  overflow: hidden;
}

.cart-section-header .cart-section-icon {
  min-width: 55px;
  width: 55px;
  height: 55px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--theme-color-100), var(--theme-color-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  z-index: 2;
}

.cart-section-header .cart-section-icon svg {
  width: 24px;
  height: 24px;
}

.cart-section-header .cart-section-content {
  position: relative;
  z-index: 2;
}

.cart-section-header .cart-section-content h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--theme-color-100);
}

.cart-section-header .cart-section-content span {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 13px;
}

/* checkout special style */
/* mobile */
@media (max-width: 768px) {
  .cart-section-header {
    padding: 15px;
  }

  .cart-section-header .cart-section-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
  }

  .cart-section-header .cart-section-content h4 {
    font-size: 16px;
  }

  .cart-section-header .cart-section-content span {
    font-size: 12px;
  }
}

@media screen and (max-width: 321px) {
  .cart-section-header .cart-section-content span {
    font-size: 11px;
  }
}

/*# sourceMappingURL=cart.css.map */
.remove-product-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f1f1f1;
  color: #999;
  border-color: #d5d5d5;
  box-shadow: none;
}

.remove-product-btn:disabled:hover {
  background-color: #f1f1f1;
  color: #999;
  border-color: #d5d5d5;
}