:root {
  --ink: #141210;
  --ink-soft: #282420;
  --muted: #6b645c;
  --paper: #f8f5ee;
  --paper-subtle: #f3efe5;
  --cream: #ece5d6;
  --white: #ffffff;
  --red: #a32227;
  --red-dark: #78181c;
  --gold: #c9933e;
  --gold-light: #edd6a8;
  --line: rgba(20, 18, 16, 0.12);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(20,18,16,0.06);
  --shadow: 0 14px 36px rgba(20, 18, 16, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 18, 16, 0.15);
  --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #faf8f5;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button, input, select { font: inherit; }

.container { max-width: 1360px; margin: auto; padding: 0 24px; }

/* Announcement */
.announcement {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.announcement span { color: var(--gold); }

/* Header */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
.nav {
  max-width: 1360px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 54px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: 'DM Sans', sans-serif; font-weight: 900; font-size: 26px; letter-spacing: 0.08em; line-height: 1; color: var(--ink); }
.brand-tag { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 32px; }
.menu a { font-size: 14px; font-weight: 600; color: var(--ink-soft); position: relative; }
.menu a:hover, .menu a.active { color: var(--red); }
.menu a.active::after { content: ""; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px; background: var(--red); border-radius: 2px; }
.actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { background: none; border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; position: relative; transition: var(--transition); color: var(--ink); }
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* Breadcrumbs & Cart Page Title */
.cart-page-header {
  padding: 30px 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.breadcrumbs {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; }
.breadcrumbs span { color: var(--ink); }
.cart-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--ink);
}

/* Cart Main Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding: 40px 0 80px;
  align-items: start;
}

/* Free Shipping Progress Bar */
.shipping-progress-card {
  background: #fdf8eb;
  border: 1px solid #edd6a8;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.shipping-msg {
  font-size: 13.5px;
  font-weight: 700;
  color: #78350f;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #f1dfbc;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Cart Table / Card List */
.cart-table-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cart-table-head {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1.2fr 1fr 40px;
  padding: 16px 24px;
  background: var(--paper-subtle);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.cart-item-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1.2fr 1fr 40px;
  padding: 20px 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
.cart-item-row:last-child { border-bottom: none; }
.cart-item-row:hover { background: #faf9f6; }

.item-info-flex {
  display: flex;
  align-items: center;
  gap: 16px;
}
.item-thumb {
  width: 70px;
  height: 70px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  padding: 6px;
  flex-shrink: 0;
}
.item-thumb img { max-height: 58px; object-fit: contain; }
.item-title-text {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.item-price-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.item-qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  width: fit-content;
  padding: 2px 4px;
}
.item-qty-stepper button {
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
}
.item-qty-stepper span {
  width: 26px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
}

.item-total-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--red);
}

.btn-remove-cart {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}
.btn-remove-cart:hover { color: var(--red); }

/* Cart Bottom Actions */
.cart-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 15px;
}
.btn-secondary {
  background: var(--white);
  border: 1.5px solid var(--line);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper);
}

/* Right Summary Card */
.order-summary-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  position: sticky;
  top: 95px;
}
.summary-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 20px;
}

/* Coupon Box */
.coupon-box {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.coupon-box input {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper-subtle);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  outline: none;
}
.coupon-box input:focus { border-color: var(--red); background: #fff; }
.btn-apply-coupon {
  background: var(--ink);
  color: white;
  border: none;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.btn-apply-coupon:hover { background: var(--red); }

/* Summary Breakdown Lines */
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.summary-row strong { color: var(--ink); }
.summary-row.discount { color: #15803d; font-weight: 700; }
.summary-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  padding-top: 16px;
  margin-top: 16px;
  border-top: 2px dashed var(--line);
  margin-bottom: 24px;
}
.summary-total-row span:last-child { color: var(--red); font-size: 24px; }

.btn-proceed-checkout {
  width: 100%;
  background: var(--red);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: block;
}
.btn-proceed-checkout:hover {
  background: var(--red-dark);
  box-shadow: 0 8px 20px rgba(163,34,39,0.3);
  transform: translateY(-2px);
}

/* Payment Badges */
.payment-trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

/* Empty State */
.cart-empty-view {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 80px 20px;
  text-align: center;
  grid-column: 1 / -1;
}
.cart-empty-view svg {
  width: 64px;
  height: 64px;
  color: #ccc;
  margin: 0 auto 16px;
}
.cart-empty-view h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.cart-empty-view p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Footer */
.footer { background: #0e0d0b; color: #fff; padding: 70px 0 30px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-brand p { color: #aaa197; font-size: 13.5px; line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #aaa197; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; color: #7a7269; font-size: 12.5px; flex-wrap: wrap; gap: 15px; }

@media (max-width: 992px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-table-head { display: none; }
  .cart-item-row { grid-template-columns: 1fr auto; gap: 14px; }
  .item-info-flex { grid-column: 1 / -1; }
  .order-summary-card { position: static; }
}
@media (max-width: 768px) {
  .menu { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
</style>
