/* =========================
   ROXXX.SHOP CART
========================= */

:root {
  --color-bg: #faf8fc;
  --color-dark: #1f1730;
  --color-primary: #30063c;
  --color-primary-hover: #3a115c;
  --color-accent: #dfb463;
  --color-text: #1f1730;
  --color-muted: #6b7280;
  --color-border: #e8ddf0;
  --color-success: #16a34a;
  --color-warning: #dfb463;
  --bottom-nav-height: 74px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 0 82px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}


button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.cart-header {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 16px;

  position: relative;
}

.cart-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-dark);
}

.back-button {
  width: 40px;
  height: 40px;

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

  color: var(--color-dark);
  text-decoration: none;

  font-size: 25px;
  line-height: 1;

  border-radius: 10px;
}

.back-button:active {
  background: #f4f1f8;
}

.header-spacer {
  width: 40px;
}


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

.cart-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}


/* =========================
   OFFER BANNER
========================= */

.offer-banner {
  margin-bottom: 16px;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: linear-gradient(135deg, #30063c 0%, #3a115c 100%);
  color: #fff;
  text-align: left;
}

.offer-banner strong {
  color: var(--color-accent);
  font-size: 15px;
}

.offer-banner span {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.offer-banner small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 430px) {
  .offer-banner {
    text-align: center;
    padding: 14px 16px;
  }
}


/* =========================
   CART ITEM
========================= */

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 20px;

  padding: 16px;

  display: flex;
  gap: 14px;
}

.cart-item-image {
  width: 88px;
  height: 88px;

  flex-shrink: 0;

  object-fit: cover;

  border-radius: 16px;
  background: #f4f1f8;
}

.cart-item-info {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
}

.cart-item-name {
  margin: 0 0 5px;

  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--color-dark);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  margin: 0;

  font-size: 15px;
  font-weight: 800;
  color: var(--color-primary);
}

.cart-item-old-price {
  margin-left: 5px;

  color: var(--color-muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
}

.free-label {
  color: #15803d;
  font-weight: 800;
}

.cart-line-total {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
}

#discountRow[hidden],
#deliveryAtDoorRow[hidden] {
  display: none
}
#cartAvailabilityNote[hidden] {
  display: none
}
.checkout-button:disabled {
  opacity: .5;
  cursor: not-allowed
}
.total-customer-row {
  padding-top: 7px;
  border-top: 1px solid var(--color-border);
  font-size: 12px
}


/* =========================
   ITEM BOTTOM
========================= */

.cart-item-bottom {
  margin-top: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;
}

.quantity-control {
  display: flex;
  align-items: center;

  border: 1px solid var(--color-border);
  border-radius: 10px;

  overflow: hidden;
}

.quantity-control button {
  width: 36px;
  height: 36px;

  border: 0;
  background: #f4f1f8;

  color: var(--color-dark);
  font-size: 17px;

  cursor: pointer;
}

.quantity-control button:active {
  background: #e8ddf0;
}

.quantity-number {
  min-width: 30px;

  text-align: center;

  font-size: 13px;
  font-weight: 800;
}

.remove-button {
  border: 0;
  background: transparent;

  color: #b91c1c;

  font-size: 12px;
  font-weight: 600;

  cursor: pointer;
}

.remove-button:hover {
  text-decoration: underline;
}


/* =========================
   ORDER SUMMARY
========================= */

.order-summary {
  margin-top: 16px;

  background: #ffffff;

  border: 1px solid var(--color-border);
  border-radius: 20px;

  padding: 20px;
}

.order-summary h2 {
  margin: 0 0 16px;

  font-size: 17px;
  font-weight: 900;
  color: var(--color-dark);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 11px;

  font-size: 14px;
}

.summary-row span:first-child {
  color: var(--color-muted);
}

.summary-row span:last-child {
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background: var(--color-border);
  margin: 14px 0;
}

.total-row {
  margin-bottom: 16px;
}

.total-row span:first-child {
  color: var(--color-dark);
  font-weight: 900;
}

.total-row span:last-child {
  color: var(--color-primary);
  font-size: 19px;
  font-weight: 900;
}

.checkout-button {
  width: 100%;
  min-height: 50px;

  border: 0;
  border-radius: 14px;

  background: var(--color-primary);
  color: #ffffff;

  font-size: 15px;
  font-weight: 900;

  cursor: pointer;
  transition: background .18s ease, transform .08s ease;
}

.checkout-button:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: scale(1.01);
}

.checkout-button:active {
  transform: scale(0.99);
}


/* =========================
   CARTS ANIMATION
========================= */

.cart-animation-section {
  margin-top: 16px;
  padding: 0;
  border-radius: 20px;
  background: #f4f1f8;
  border: 1px solid var(--color-border);
}

.cart-animation-container {
  width: 100%;
  height: 160px;
  max-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(245, 222, 245, 0.199);
  border: 1px solid var(--color-border);
}

.cart-animation-container #lottie-cart {
  width: 190px;
  height: 190px;
}

@media (min-width: 768px) {
  .cart-animation-container {
    height: 200px;
  }
  .cart-animation-container #lottie-cart {
    width: 160px;
    height: 160px;
  }
}


/* =========================
   EMPTY CART
========================= */

.empty-cart {
  min-height: calc(100vh - 142px);

  padding: 60px 24px 100px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.empty-cart.hidden {
  display: none;
}

.empty-cart-icon {
  width: 76px;
  height: 76px;

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

  background: #f4f1f8;
  border-radius: 50%;

  font-size: 34px;

  margin-bottom: 18px;
}

.empty-cart h2 {
  margin: 0 0 8px;

  font-size: 20px;
  color: var(--color-dark);
}

.empty-cart p {
  max-width: 320px;

  margin: 0 0 22px;

  color: var(--color-muted);

  font-size: 14px;
  line-height: 1.6;
}

.continue-shopping {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;

  padding: 0 22px;

  border-radius: 10px;

  background: var(--color-primary);
  color: #ffffff;

  text-decoration: none;

  font-size: 14px;
  font-weight: 800;
}

.continue-shopping:hover {
  background: var(--color-primary-hover);
}


/* =========================
   BOTTOM NAV
========================= */

.bottom-nav {
  position: fixed;
  z-index: 100;

  left: 0;
  right: 0;
  bottom: 0;

  height: var(--bottom-nav-height);

  padding-bottom: env(safe-area-inset-bottom);

  background: rgba(255, 255, 255, .98);

  border-top: 1px solid var(--color-border);

  box-shadow: 0 -6px 20px rgba(48, 6, 60, .06);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  display: grid;
  grid-template-columns: repeat(5, 1fr);
}


.bottom-nav a {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 4px;

  color: var(--color-muted);
  text-decoration: none;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;

  -webkit-tap-highlight-color: transparent;
}

.bottom-nav a small {
  margin: 0;
  padding: 0;

  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.bottom-nav .nav-icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.bottom-nav a.active {
  color: var(--color-primary);
}

.bottom-nav a.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(223, 180, 99, .5));
}


/* =========================
   TABLET / DESKTOP
========================= */

@media (min-width: 768px) {

  body {
    padding-bottom: 0;
  }

  .cart-header {
    padding: 0 24px;
  }

  .cart-container {
    padding: 28px 24px 40px;
  }

  .cart-item {
    padding: 16px;
  }

  .cart-item-image {
    width: 110px;
    height: 110px;
  }

  .bottom-nav {
    display: none;
  }

  .order-summary {
    padding: 20px;
  }

}
