:root {
  --cf-card-bg: #ffffff;
  --cf-card-border: rgba(212, 175, 55, 0.18);
  --cf-muted: rgba(13, 17, 23, 0.6);
  --cf-soft: rgba(212, 175, 55, 0.08);
  --cf-soft-2: rgba(212, 175, 55, 0.12);
}

.cf-section {
  padding: 70px 0;
}

.cf-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.cf-header-title h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--luxury-black);
  margin: 0 0 6px;
}

.cf-header-title p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 14px;
  line-height: 1.9;
}

.cf-header-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.cf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.cf-list {
  min-width: 0;
}

.cf-summary {
  position: sticky;
  top: 110px;
}

.cf-summary-card {
  background: var(--cf-card-bg);
  border: 1px solid var(--cf-card-border);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 18px;
}

.cf-summary-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.cf-summary-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.cf-summary-badge {
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--cf-soft);
  color: var(--luxury-black);
  border: 1px solid var(--cf-card-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.cf-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  margin-bottom: 14px;
}

.cf-summary-row span {
  color: var(--cf-muted);
  font-weight: 700;
  font-size: 15px;
}

.cf-summary-hint {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--cf-muted);
  font-size: 13px;
  line-height: 1.7;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(13, 17, 23, 0.03);
  border: 1px solid rgba(13, 17, 23, 0.06);
  margin: 12px 0;
}

.cf-summary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.cf-btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.cf-btn-full {
  width: 100%;
}

.cf-btn-primary {
  background: linear-gradient(135deg, var(--luxury-gold) 0%, var(--luxury-gold-dark) 100%);
  color: #111;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.3);
}

.cf-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.36);
}

.cf-btn-outline {
  background: #fff;
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--luxury-black);
}

.cf-btn-outline:hover {
  background: var(--cf-soft);
  border-color: rgba(212, 175, 55, 0.6);
}

.cf-btn-disabled {
  background: rgba(13, 17, 23, 0.08);
  border-color: rgba(13, 17, 23, 0.1);
  color: rgba(13, 17, 23, 0.45);
  cursor: not-allowed;
  box-shadow: none;
}

.cf-item {
  background: var(--cf-card-bg);
  border: 1px solid var(--cf-card-border);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
}

.cf-item-image {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff8f0 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.cf-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cf-item-title {
  min-width: 0;
}

.cf-item-title a {
  display: block;
  font-weight: 900;
  color: var(--luxury-black);
  line-height: 1.35;
}

.cf-item-sub {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-size: 12px;
  color: var(--cf-muted);
  font-weight: 700;
}

.cf-item-price {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 900;
  color: var(--luxury-gold-dark);
}

.cf-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cf-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(13, 17, 23, 0.12);
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--luxury-black);
}

.cf-icon-btn:hover {
  background: var(--cf-soft);
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}

.cf-icon-btn-danger {
  color: var(--jewel-ruby);
  border-color: rgba(224, 17, 95, 0.22);
}

.cf-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
}

.cf-qty button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(13, 17, 23, 0.12);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--luxury-black);
}

.cf-qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 900;
  color: var(--luxury-black);
}

.cf-empty {
  background: var(--cf-card-bg);
  border: 1px solid var(--cf-card-border);
  border-radius: 18px;
  padding: 30px 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.cf-empty .cf-empty-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cf-soft);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--luxury-gold);
  font-size: 26px;
}

.cf-empty h3 {
  margin: 0 0 8px;
  font-weight: 900;
  color: var(--luxury-black);
}

.cf-empty p {
  margin: 0 0 14px;
  color: var(--cf-muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.9;
}

@media (max-width: 1024px) {
  .cf-layout {
    grid-template-columns: 1fr;
  }

  .cf-summary {
    position: static;
  }
}

@media (max-width: 520px) {
  .cf-item {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 12px;
  }

  .cf-item-image {
    width: 76px;
    height: 76px;
    border-radius: 14px;
  }

  .cf-header-title h2 {
    font-size: 22px;
  }
}
