/* Cart page */
body.cart-html-page,
body.checkout-html-page {
  font-family: "Chakra Petch", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #f9fafb !important;
}

/* Light shop pages: dark header from the start */
body.cart-html-page #header-sticky.header-1,
body.checkout-html-page #header-sticky.header-1 {
  background-color: #fff;
  box-shadow: rgba(149, 157, 165, 0.15) 0px 4px 16px;
}

body.cart-html-page #header-sticky.header-1 .logo .rr-logo--dark,
body.checkout-html-page #header-sticky.header-1 .logo .rr-logo--dark {
  display: block !important;
}

body.cart-html-page #header-sticky.header-1 .logo .rr-logo--light,
body.checkout-html-page #header-sticky.header-1 .logo .rr-logo--light {
  display: none !important;
}

body.cart-html-page #header-sticky.header-1 .header-main .main-menu ul li a,
body.checkout-html-page #header-sticky.header-1 .header-main .main-menu ul li a {
  color: #030523 !important;
}

body.cart-html-page #header-sticky.header-1 .header-main .main-menu ul li a:hover,
body.checkout-html-page #header-sticky.header-1 .header-main .main-menu ul li a:hover {
  color: #fe5900 !important;
}

body.cart-html-page #header-sticky.header-1 .sidebar__toggle .header-bar span,
body.cart-html-page #header-sticky.header-1 .sidebar__toggle .header-bar span:first-child,
body.cart-html-page #header-sticky.header-1 .sidebar__toggle .header-bar span:last-child,
body.checkout-html-page #header-sticky.header-1 .sidebar__toggle .header-bar span,
body.checkout-html-page #header-sticky.header-1 .sidebar__toggle .header-bar span:first-child,
body.checkout-html-page #header-sticky.header-1 .sidebar__toggle .header-bar span:last-child {
  background: #030523 !important;
}

.cart-page {
  padding: 100px 0 48px;
  min-height: 60vh;
  background: #f9fafb;
}

.cart-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.cart-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 900;
  margin: 0;
  font-family: "Big Shoulders Display", sans-serif;
  text-transform: uppercase;
  line-height: 1.1;
}

.cart-continue {
  color: #fe5900;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.cart-empty {
  display: none;
  text-align: center;
  padding: 3.5rem 1rem;
}

.cart-empty-icon {
  font-size: 56px;
  margin-bottom: 1rem;
}

.cart-empty h2 {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.75rem;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.cart-empty p {
  color: #64748b;
  margin: 0 0 1.5rem;
}

.cart-content {
  display: none;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Cart item */
.cart-item {
  display: flex;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.85rem;
  align-items: flex-start;
}

.cart-item-thumb,
.cart-item-thumb img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-thumb-ph {
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #9ca3af;
  font-weight: 700;
}

.cart-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cart-item-row1 {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cart-item-title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: #111;
}

.cart-item-unit {
  font-size: 13px;
  color: #fe5900;
  font-weight: 700;
}

.cart-item-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 2px 4px;
}

.cart-item-qty button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fe5900;
}

.cart-item-qty button:hover {
  background: #ffe8da;
}

.cart-item-qty span {
  font-weight: 700;
  font-size: 14px;
  min-width: 22px;
  text-align: center;
}

.cart-item-total {
  font-weight: 900;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 15px;
  white-space: nowrap;
  color: #111;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
}

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

.cart-item-remove--desktop {
  display: none;
}

/* Summary */
.cart-summary {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
}

.cart-summary h3 {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-size: 14px;
  color: #374151;
}

.cart-summary-row strong {
  font-weight: 700;
}

.cart-summary-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0.75rem 0;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 900;
  font-family: "Big Shoulders Display", sans-serif;
  text-transform: uppercase;
}

.cart-checkout-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  height: auto !important;
  line-height: 1.2 !important;
  padding: 14px 20px !important;
  margin-top: 1rem;
  border-radius: 12px !important;
  text-decoration: none !important;
  box-sizing: border-box;
}

.cart-checkout-btn i {
  margin-left: 0;
}

@media (min-width: 768px) {
  .cart-page {
    padding: 140px 0 60px;
  }

  .cart-wrap {
    padding: 0 1.5rem;
  }

  .cart-head {
    margin-bottom: 2rem;
  }

  .cart-items {
    margin-bottom: 2rem;
  }

  .cart-item {
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }

  .cart-item-thumb,
  .cart-item-thumb img,
  .cart-item-thumb-ph {
    width: 72px;
    height: 72px;
  }

  .cart-item-main {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

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

  .cart-item-row1 {
    flex: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cart-item-row1 .cart-item-remove--mobile {
    display: none;
  }

  .cart-item-row2 {
    flex-shrink: 0;
    gap: 1.25rem;
  }

  .cart-item-title {
    font-size: 15px;
  }

  .cart-item-total {
    font-size: 16px;
    min-width: 90px;
    text-align: right;
  }

  .cart-item-remove--desktop {
    display: block;
    font-size: 20px;
    padding: 0 4px;
  }

  .cart-summary {
    max-width: 440px;
    margin-left: auto;
    padding: 1.75rem;
  }
}

/* ─── Checkout page ─────────────────────────────────────────────────────── */
:root {
  --co: #fe5900;
}

.checkout-page {
  padding: 100px 0 48px;
  min-height: 60vh;
  background: #f9fafb;
}

.checkout-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.checkout-title {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 900;
  margin: 0;
  font-family: "Big Shoulders Display", sans-serif;
  text-transform: uppercase;
  line-height: 1.1;
}

.checkout-back {
  color: #fe5900;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.checkout-empty {
  display: none;
  text-align: center;
  padding: 3.5rem 1rem;
}

.checkout-empty-icon {
  font-size: 56px;
  margin-bottom: 1rem;
}

.checkout-empty h2 {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.75rem;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.co-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.co-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.co-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.co-form-grid--2 {
  grid-template-columns: 1fr;
}

.co-field-spaced {
  margin-top: 1rem;
}

.co-field-spaced-sm {
  margin-bottom: 1rem;
}

.co-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.co-input,
.co-select,
.co-textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 15px;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  caret-color: #111;
  background: #fff !important;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.co-input::placeholder,
.co-textarea::placeholder {
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af !important;
  opacity: 1;
}

.co-input:focus,
.co-select:focus,
.co-textarea:focus {
  border-color: var(--co);
}

.co-input:-webkit-autofill,
.co-input:-webkit-autofill:hover,
.co-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111 !important;
  caret-color: #111;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

.co-textarea {
  resize: vertical;
  min-height: 80px;
}

.co-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.co-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.co-radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.co-radio-label.selected {
  border-color: var(--co);
  background: #fff5f0;
}

.co-radio-label input[type="radio"] {
  accent-color: var(--co);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.co-radio-hint {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
  text-align: right;
}

.co-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.co-section-title {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #111;
  letter-spacing: 0.02em;
}

.co-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0.85rem 0;
}

.co-order-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.co-order-item:last-child {
  border-bottom: none;
}

.co-order-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
  flex-shrink: 0;
}

.co-order-info {
  flex: 1;
  min-width: 0;
}

.co-order-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: #111;
}

.co-order-meta {
  font-size: 13px;
  color: #64748b;
  margin-top: 0.15rem;
}

.co-order-total {
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  color: #111;
  flex-shrink: 0;
}

.co-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #374151;
  margin-bottom: 0.5rem;
}

.co-summary-row strong {
  font-weight: 700;
}

.co-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 900;
  font-family: "Big Shoulders Display", sans-serif;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.co-note {
  margin-top: 0.75rem;
  font-size: 13px;
  color: #64748b;
}

.co-error {
  display: none;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.co-place-btn {
  width: 100%;
  padding: 15px;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--co);
  color: #fff;
  transition: background 0.2s;
}

.co-place-btn:hover {
  background: #d44800;
}

.co-place-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

#coSuccess {
  display: none;
  padding: 2rem 0 1rem;
}

#coSuccess .co-success-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

#coSuccess .co-success-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}

#coSuccess .co-success-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

#coSuccess .co-success-title {
  margin: 0 0 1rem;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #111;
  line-height: 1.15;
}

#coSuccess .co-success-order {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.55rem 1.15rem;
  background: #fff5f0;
  border: 1px solid #ffd4bf;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  color: #fe5900;
  letter-spacing: 0.02em;
}

#coSuccess .co-success-copy {
  margin: 0 auto 2rem;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.65;
  color: #64748b;
}

#coSuccess .co-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

#coSuccess .co-success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

#coSuccess .co-success-btn-primary {
  background: #fe5900;
  color: #fff !important;
  border: none;
}

#coSuccess .co-success-btn-primary:hover {
  background: #d44800;
}

#coSuccess .co-success-btn-ghost {
  background: #fff;
  color: #374151 !important;
  border: 1.5px solid #e5e7eb;
}

#coSuccess .co-success-btn-ghost:hover {
  border-color: #fe5900;
  color: #fe5900 !important;
}

@media (min-width: 576px) {
  .co-form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .checkout-page {
    padding: 140px 0 60px;
  }

  .checkout-wrap {
    padding: 0 1.5rem;
  }

  .checkout-head {
    margin-bottom: 2rem;
  }

  .co-layout {
    gap: 2rem;
  }

  .co-form-stack {
    gap: 1.5rem;
  }

  .co-card {
    padding: 1.75rem;
  }

  .co-section-title {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
  }

  .co-order-img {
    width: 54px;
    height: 54px;
  }

  .co-order-total {
    font-size: 15px;
  }

  .co-place-btn {
    font-size: 1.05rem;
  }

  #coSuccess .co-success-card {
    padding: 3rem 2.5rem 2.75rem;
  }
}

@media (min-width: 992px) {
  .co-layout {
    grid-template-columns: 1fr 380px;
  }

  .co-summary-col {
    position: sticky;
    top: 100px;
  }
}

@media (max-width: 575px) {
  .co-radio-label {
    flex-wrap: wrap;
  }

  .co-radio-hint {
    margin-left: 2rem;
    width: 100%;
    text-align: left;
  }

  #coSuccess .co-success-actions {
    flex-direction: column;
  }

  #coSuccess .co-success-btn {
    width: 100%;
  }
}
